On Thu, Apr 27, 2000 at 07:52:18PM +0200, Oswald Buddenhagen wrote: > > I would like to run the system without xdm most of the time, but there > > are times when I need it. Also sometimes I want to switch off network > > services but still allow local logins. > > > mee too. i must admit, that this is a point, where suse and redhat are > better than debian. :'-( > > > I can make my own runlevels > > from among 3-5 by removing some of the links from /etc/rc[345].d, but > > will the next upgrade of the relevant packages re-create the links? > i'm not sure, if i didn't overlook something, but my netbase update did > not re-install my deleted portmapper link. so you should be on the safe > side.
>From the update-rc.d man page: If any files /etc/rcrunlevel.d/[SK]??name already exist then update-rc.d does nothing. This is so that the system administrator can rearrange the links, provided that they leave at least one link remaining, without having their configuration overwritten. So, yes, unless someone does things in a wrong way, your changes will be left as-is. > > If so, what _is_ the proper way to do this with Debian? You can just delete the links you don't want, or use update-rc.d (note, though, that update-rc.d was really designed more to be used by install scripts to keep your settings, so you'll have to do a '-f foo remove' to remove all links first, and then add back what you want... otherwise it'll decide you're trying to override previous choices and ignore you). > according to the as-flexible-as-possible (say: do-it-yourself) philosophy > of debian, the modification of /etc/init.d scripts and /etc/rc?.d is the > way to go. Exactly. And that's what makes debian nice: you can change it to do what you want, and if you do it the 'right' way, it will honor your changes. -- Brian Moore | Of course vi is God's editor. Sysadmin, C/Perl Hacker | If He used Emacs, He'd still be waiting Usenet Vandal | for it to load on the seventh day. Netscum, Bane of Elves.