On Tue, Apr 15, 2003 at 06:00:49PM +0200, Patrice Fortier wrote: [...] > I read a couple of comments on the XXX-way to disable a service: > mv S->K, rm the S lines, uninstalling the package, etc. > In the good old days I did a find -exec rm :). > Now, I'm a bit older, and a bit lazier so a chkconfig --del suited my needs > (as would an update-rc.d remove). > Some people look in rc?.d/* to see if a package is installed, I just look in init.d/ > (I don't like having too much stuff in rc?.d/: it's less readable, and a waste of > time at boot). > My problem is when I want to reactivate a service. With chkconfig I can > do it like a charm. With update-rc.d I have to remember all the parameters, > or maybe look at the postinstall script (didn't check this, so I may be wrong > on this one :)). For easy activation/deactivation with the package default settings (or your customized settings, if have you changed them) rather than update-rc.d:s default of 20, use your favourite editor and insert/remove "exit 0" in the beginning of /etc/init.d/<package>. Not elegant, but pretty fast. > This second problem is much disturbing for me: > playing with update-rc.d I saw that it was generating a rc2.d/S20apache. > Starting apache at run level 2??? > Looking in /etc/inittab, I also found: > id:2:initdefault: In Debian, runlevels 2-5 are equal by default. As Colin pointed out, this has been the case for quite some time, and no "change" has been done. LSB compliance seems to be the only good reason to actually do a change. Personally I find the "equal by default, everything installed running" a good choice, but I see it as a matter of taste. Search the archives for discussions on debian-devel if you still are disturbed and need more arguments. > An other feature that I miss is the [ OK ] [FAILED] at boot for the > rc?.d/ stuff. You can think it's just a fancy thing, and in fact you're > right as long as there is only green OK displayed on the screen. > The red FAILED displayed is very interesting, especially when you > expected that everything should be fine. Agreed. For me who have never used anything but Debian, that sounds like something I would like Debian to do :-) > Well, I guess I should stop here for a first mail (even if we're still at boot > stuff) :o). Give us some more! > Please, don't misunderstand me, I didn't write this to bash on debian, > I'm just looking for a way to get the best of both worlds, or at least > to get the answers to questions that disturb me. The archives of the mailing list debian-devel holds many interesting discussions on matters like this. You might find it valuable, but don't hesitate to ask more here on debian-user. kind regards, -- Hans Ekbrand (http://sociologi.cjb.net) <firstname.lastname@example.org> GnuPG key: 1024D/7050614E (currently active subkey 03CE8884) Fingerprint: 1408 C8D5 1E7D 4C9C C27E 014F 7C2C 872A 7050 614E Key available at keyserver.kjsl.com Encrypted emails prefered.
Description: PGP signature