Page 1 of 1

[done] enabling/disabling system services

PostPosted: Aug 20th, '15, 21:04
by telliev
When i try to disable the autostart of some service it continues to start on boot. I tried 'systemctl disable service.name'. I tried disabling by unchecking in MCC as well but they continue to autostart at boot. Running Mageia 5 (updated).

Code: Select all
● hostapd.service - Hostapd IEEE 802.11 AP, IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator
   Loaded: loaded (/usr/lib/systemd/system/hostapd.service; disabled)
   Active: active (running) since Thu 2015-08-20 19:48:16 EEST; 1min 20s ago
  Process: 2645 ExecStart=/usr/sbin/hostapd /etc/hostapd/hostapd.conf -P /run/hostapd.pid -B (code=exited, status=0/SUCCESS)
 Main PID: 2709 (hostapd)
   CGroup: /system.slice/hostapd.service
           └─2709 /usr/sbin/hostapd /etc/hostapd/hostapd.conf -P /run/hostapd...


Re: enabling/disabling system services

PostPosted: Aug 20th, '15, 21:25
by doktor5000
Can you please post the exact command you used and the output you got?
systemctl disable service.name will not work, it's
Code: Select all
systemctl disable name.service
- you can also omit the .service at the end and systemd will guess automatically the type.

Re: enabling/disabling system services

PostPosted: Aug 20th, '15, 21:48
by telliev
systemctl disable hostapd.service

It seems to be disabled but it continues to start at boot.

Re: enabling/disabling system services

PostPosted: Aug 20th, '15, 21:59
by doktor5000
Can you please post the output you got?

Apart from that, you could try with
Code: Select all
systemctl mask hostapd.service

Re: enabling/disabling system services

PostPosted: Aug 20th, '15, 22:29
by telliev
I posted the output in my first post. When masked the service does not start on boot. I have other services like NetworkManager which are disabled in MCC but are still trying to start at boot.

Code: Select all
[ INFO ] Network Manager is not active.
[DEPEND] Dependency failed for Network Manager Wait Online.


NetApplet also dissapeared from my taskbar after loading the hostapd.service and it does not show again.

Re: enabling/disabling system services

PostPosted: Aug 20th, '15, 23:30
by doktor5000
telliev wrote:I posted the output in my first post.

You posted the output of systemctl status hostapd.

telliev wrote:I have other services like NetworkManager which are disabled in MCC but are still trying to start at boot.

Code: Select all
[ INFO ] Network Manager is not active.
[DEPEND] Dependency failed for Network Manager Wait Online.

It says that networkmanager is inactive. NetworkManager-wait-online.service is a separate service.

telliev wrote:NetApplet also dissapeared from my taskbar after loading the hostapd.service and it does not show again.

Sounds like a separate issue. Now that you masked hostapd, is net_applet shown in the taskbar? In case not, please show the output as root of
Code: Select all
journalctl -ab | grep -i net_applet

Re: enabling/disabling system services

PostPosted: Aug 21st, '15, 06:04
by telliev
Hello! When i disable hostapd.service there is no output. It seems to accept the disable signal.
NetworkManager-wait-online.service is also a disabled service in MCC but it shows on boot.

Code: Select all
[root@localhost 06:58:29 telliev]# systemctl status NetworkManager-wait-online.service
● NetworkManager-wait-online.service - Network Manager Wait Online
   Loaded: loaded (/usr/lib/systemd/system/NetworkManager-wait-online.service; disabled)
   Active: inactive (dead)

Aug 20 23:36:17 localhost.localdomain systemd[1]: Dependency failed for Netwo...
Hint: Some lines were ellipsized, use -l to show in full.


net_applet after some reboot works, but sometimes it's icon dissapear and does not show. Reboot is needed.
Code: Select all
[root@localhost 07:02:05 telliev]# journalctl -ab | grep -i net_applet
Aug 20 23:37:01 localhost.localdomain net_applet[1892]: ### Program is starting ###

Re: enabling/disabling system services

PostPosted: Aug 21st, '15, 19:40
by doktor5000
If you don't want to see the message about NetworkManager-wait-online.service then you should also mask it.
For net_applet intermittently disappearing - that belongs in a separate thread.