SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2015-09-14 07:32:10

monostereo
Member
Registered: 2014-05-07
Posts: 43

[solved] NetworkManager service persists after update-rc.d remove

can someone explaine to me this:

when i remove service:

 
sudo update-rc.d -f network-manager remove

when i run program sysv.rc.conf or rcconf i can see that service i remove is not there anymore [empty fields] - cool... but, when i run command:

sudo service --status-all

the service is still there even if i reboot the system..

what i am doing wrong?

these commands are the essence of how to remove the service but in my case without results.

edit: because for some reason i can not understand/figure out why these commands doesnt work, i can do some alternatives such as:

sudo mkdir /etc/init.d/disabled

+

sudo mv /etc/init.d/network-manager /etc/init/disabled

?

Last edited by monostereo (2015-09-15 06:51:30)

Offline

Be excellent to each other!

#2 2015-09-14 11:04:01

Head_on_a_Stick
CatMod
From: A world of pure imagination
Registered: 2014-01-21
Posts: 4,797

Re: [solved] NetworkManager service persists after update-rc.d remove

I have moved your query to Help & Support (Stable)

Does this work:

sudo systemctl disable NetworkManager.service

https://wiki.archlinux.org/index.php/Sy … sing_units

Offline

#3 2015-09-14 12:36:12

monostereo
Member
Registered: 2014-05-07
Posts: 43

Re: [solved] NetworkManager service persists after update-rc.d remove

sudo systemctl disable cron.service 
Synchronizing state for cron.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d cron defaults
Executing /usr/sbin/update-rc.d cron disable
insserv: warning: current start runlevel(s) (empty) of script `cron' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (2 3 4 5) of script `cron' overrides LSB defaults (empty).

and i can see in the program: 'sysv-rc-conf' that this service is not active anymore - empty fields. but when i run this command:

sudo service --status-all

the 'cron' service is stil there like '+'

Offline

#4 2015-09-14 16:17:17

Head_on_a_Stick
CatMod
From: A world of pure imagination
Registered: 2014-01-21
Posts: 4,797

Re: [solved] NetworkManager service persists after update-rc.d remove

You can check which .services are enabled to start at boot with this command:

ls -lR /etc/systemd/system

Enabled .services (et at) are shown by symlinks to the respective unit files.

Although BunsenLabs (jessie) should support the old SysVinit commands it is now using systemd as init and the systemd commands should be preferred.

The ArchWiki link in my post (#2) explains how to use `systemctl` to control .services on your machine.

Offline

#5 2015-09-14 17:08:05

monostereo
Member
Registered: 2014-05-07
Posts: 43

Re: [solved] NetworkManager service persists after update-rc.d remove

i understand now. it was so confusing for me to understand how it works. i hope it is ok now?

example:

if i want to see what service is active at boot, command is:

systemctl status anacron

if i want to disable at boot this service:

sudo systemctl disable anacron
Synchronizing state for anacron.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d anacron defaults
Executing /usr/sbin/update-rc.d anacron disable
insserv: warning: current start runlevel(s) (empty) of script `anacron' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (2 3 4 5) of script `anacron' overrides LSB defaults (empty).
systemctl status anacron
● anacron.service - Run anacron jobs
   Loaded: loaded (/lib/systemd/system/anacron.service; disabled)
   Active: inactive (dead)

he is disabled

sudo service --status-all
 [ - ] anacron 

interesting..

thanks!

Last edited by monostereo (2015-09-14 17:15:54)

Offline

#6 2015-09-14 21:29:58

Head_on_a_Stick
CatMod
From: A world of pure imagination
Registered: 2014-01-21
Posts: 4,797

Re: [solved] NetworkManager service persists after update-rc.d remove

You're welcome.

Please edit the title of your thread (in the first post) and add "[SOLVED]" to help others who may be searching for a solution to this problem.

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: acrobat

Debian Logo