[done] enabling/disabling system services

This forum is dedicated to advanced help and support :

Ask here your questions about advanced usage of Mageia. For example you may post here all your questions about network and automated installs, complex server configurations, kernel tuning, creating your own Mageia mirrors, and all tasks likely to be touchy even for skilled users.

[done] enabling/disabling system services

Postby telliev » Aug 20th, '15, 21:04

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...

Last edited by telliev on Aug 22nd, '15, 06:59, edited 1 time in total.
telliev
 
Posts: 39
Joined: Mar 8th, '15, 18:38

Re: enabling/disabling system services

Postby doktor5000 » Aug 20th, '15, 21:25

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.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18018
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: enabling/disabling system services

Postby telliev » Aug 20th, '15, 21:48

systemctl disable hostapd.service

It seems to be disabled but it continues to start at boot.
telliev
 
Posts: 39
Joined: Mar 8th, '15, 18:38

Re: enabling/disabling system services

Postby doktor5000 » Aug 20th, '15, 21:59

Can you please post the output you got?

Apart from that, you could try with
Code: Select all
systemctl mask hostapd.service
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18018
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: enabling/disabling system services

Postby telliev » Aug 20th, '15, 22:29

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.
telliev
 
Posts: 39
Joined: Mar 8th, '15, 18:38

Re: enabling/disabling system services

Postby doktor5000 » Aug 20th, '15, 23:30

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
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18018
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: enabling/disabling system services

Postby telliev » Aug 21st, '15, 06:04

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 ###
telliev
 
Posts: 39
Joined: Mar 8th, '15, 18:38

Re: enabling/disabling system services

Postby doktor5000 » Aug 21st, '15, 19:40

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.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18018
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany


Return to Advanced support

Who is online

Users browsing this forum: No registered users and 1 guest