[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Feedback needed: How to disable services at startup... and keep them so.



On Wed, 08 Dec 2010 08:37:52 -0500, Tom H wrote:

> On Wed, Dec 8, 2010 at 8:23 AM, Camaleón wrote:
>> On Tue, 07 Dec 2010 23:46:53 +0100, Jochem Kossen wrote: 

(...)

>>> You didn't disable network-manager. You removed the startup scripts
>>> which were correctly put back by the update.
>>>
>>> Of course I only know this by being bitten by it several times in the
>>> past ;-)
>>
>> Hum... good catch. Let's test it.

(...)

>> Now, I restart the system (rebooting...) and check for network manager
>> service, that should have been disabled:
>>
>> test@debian:~$ /etc/init.d/network-manager status NetworkManager is
>> running.
>>
>> But it is running.
> 
> "update-rc.d ... 20..." isn't ging to work with insserv (one reason
> being that it numbers the "/etc/rcX.d" scripts indepedently of you).

Mmm... man page says by using "defaults" the service should be put in 
sequence number 20 (unless there are any conflicts):

test@debian:~$ ls -l /etc/rc* | grep network-manager
lrwxrwxrwx 1 root root  25 dic  8 14:12 K01network-manager -> ../init.d/network-manager
lrwxrwxrwx 1 root root  25 dic  8 14:12 K01network-manager -> ../init.d/network-manager
lrwxrwxrwx 1 root root  25 dic  8 14:12 S20network-manager -> ../init.d/network-manager
lrwxrwxrwx 1 root root  25 dic  8 14:12 S20network-manager -> ../init.d/network-manager
lrwxrwxrwx 1 root root  25 dic  8 14:12 S20network-manager -> ../init.d/network-manager
lrwxrwxrwx 1 root root  25 dic  8 14:12 S20network-manager -> ../init.d/network-manager
lrwxrwxrwx 1 root root  25 dic  8 14:12 K01network-manager -> ../init.d/network-manager

And so it seems to be :-?

> The best way that I've found to deviate from the LSB headers is to use
> "/etc/insserv/overrides/".

I'll have to test that, but first I would like to know if there is another 
method to get the job done. I'd like to undertstand what I am doing wrong.

Greetings,

-- 
Camaleón


Reply to: