Page 1 of 1

[SOLVED] Systemd - disable services

PostPosted: Jan 29th, '13, 19:41
by hibii
How disable services: fedora-loadmodules.service?

Code: Select all
systemctl disable fedora-loadmodules.service


not work, services load:

Code: Select all
fedora-loadmodules.service            loaded failed failed


--
sorry my english

Re: Systemd - disable services

PostPosted: Jan 29th, '13, 22:02
by oj
Did you restart the computer? If not, you have to 'stop' the module too. 'disable' sets it to not load when booting the system.

Re: Systemd - disable services

PostPosted: Jan 29th, '13, 22:22
by hibii
Yes, after restart.

Re: Systemd - disable services

PostPosted: Jan 29th, '13, 22:37
by doktor5000
[doktor5000@Mageia2 ~]$ systemctl status fedora-loadmodules.service
fedora-loadmodules.service - Load legacy module configuration
Loaded: loaded (/lib/systemd/system/fedora-loadmodules.service; static)
Active: active (exited) since Mon, 28 Jan 2013 00:10:38 +0100; 1 day and 21h ago
Process: 327 ExecStart=/lib/systemd/fedora-loadmodules (code=exited, status=0/SUCCESS)
CGroup: name=systemd:/system/fedora-loadmodules.service


See the "static" attribute there? This means it cannot be disabled.
Question would rather be, why do you actually want to disable this, any particular reason?

Re: Systemd - disable services

PostPosted: Jan 30th, '13, 00:18
by hibii
systemctl status fedora-loadmodules.service
fedora-loadmodules.service - Load legacy module configuration
Loaded: loaded (/usr/lib/systemd/system/fedora-loadmodules.service; static)
Active: failed (Result: exit-code) since Tue, 2013-01-29 23:03:42 CET; 11min ago
Process: 434 ExecStart=/lib/systemd/fedora-loadmodules (code=exited, status=1/FAILURE)
CGroup: name=systemd:/system/fedora-loadmodules.service

why do you actually want to disable this, any particular reason?

Because I've Active: failed

Re: Systemd - disable services

PostPosted: Jan 30th, '13, 01:07
by hibii
I delete /etc/modprobe.preload.d/cpufreq
I've old AthlonXP 2600

Re: Systemd - disable services

PostPosted: Jan 30th, '13, 07:05
by doktor5000
hibii wrote:
Active: failed (Result: exit-code) since Tue, 2013-01-29 23:03:42 CET; 11min ago


Because I've Active: failed


Well, and? Me too, but there are not any real problem because of that ...
Hint: Only start investigating an error message, if you see real problems possibly connected to it.

Re: [SOLVED] Systemd - disable services

PostPosted: Jan 30th, '13, 08:36
by lemonzest
this is the reason this service is failing

https://bugs.mageia.org/show_bug.cgi?id=8898

Re: [SOLVED] Systemd - disable services

PostPosted: Jan 30th, '13, 22:43
by doktor5000
Sorry, looking at it again, i've got
Code: Select all
Active: active
there. Probably need more sleep :oops: