turn off network manager in Ubuntu
Steven Susbauer
steven at too1337.com
Tue Apr 28 13:54:34 UTC 2009
Oliver Grawert wrote:
> hi,
> Am Montag, den 27.04.2009, 14:17 -0500 schrieb Steven Susbauer:
> ...
>> There is nothing in /etc/dbus-1/event.d on my system (Jaunty). To
>> disable NetworkManager I run "sudo update-rc.d -f NetworkManager
>> remove", which removes it from the init scripts and it won't start
>> automatically, adding it back again uses the same command with different
>> options. If you want to start it manually you run "sudo
>> /etc/init.d/NetworkManager start".
> just a little heads up, if you do the above the next security upgrade
> will re-enable it, never use update-rc.d if not from a package
> maintenance script ...
>
> from "man update-rc.d":
> ...
> Please note that this program was designed for use in package maintainer
> scripts and, accordingly, has only the very limited functionality
> required by such scripts. System administrators are not encouraged to
> use update-rc.d to manage runlevels. They should edit the links
> directly or use runlevel editors such as sysv-rc-conf and bum instead.
> ...
>
> if the links are removed this will not be respected, the proper way to
> disable something is:
> sudo mv /etc/rc2.d/SXX<appname> /etc/rc2.d/KXX<appname>
>
> (where appanme is the service you want to disable and XX is the sequence
> number)
>
> if a K (kill) link exists in the runlevel dir, maintainer scripts of
> packages wont touch the link, if *no* link exists (i.e. if you use the
> remove option of update-rc.d) next time the maintainer script is
> executed (i.e. during a security update of the package), the scripts
> will automatically restore the default settings.
>
> ciao
> oli
>
Very interesting. Thanks for pointing that out. :) I have often wondered
what the K vs S was in those scripts. I discovered update-rc.d while
looking for an equivalent for Gentoo's "rc-update" application some time
ago. I didn't realize it wasn't meant to be used by the user.
BTW, sysv-rc-conf made my head explode. It makes every controller I've
used in the past look like peanuts.
Cheers!
-Steve
More information about the ubuntu-users
mailing list