Post details: Debian Startup Scripts

01/02/05

Permalink 06:47:26 pm, Categories: Debian, 290 words   English (US)

Debian Startup Scripts

I've been testing a few things on Debian that require additional daemons to be started (ldap, apache, samba, exim). I left them on and my bootup was getting kinda slow. So began my quest to understand the Debian initscripts.

Generally they are the same as Red Hat, with /etc/rcN.d/ directories corresponding to the runlevels. Now what I wanted to do was disable the inetd service from starting. On Red Hat, I would do something like:

chkconfig --level 2345 inetd off

How to do it in Debian? After a bit of searching on Google, I came across some recommendations to do:

update-rc.d -f inetd remove

Which actually works, but you lose the original startup order. Let's say inetd used 33 (i.e. S33inetd), the 33 appears not to be stored anywhere. On Red Hat, this was stored in the rc script itself for chkconfig. The only way I could restore this information is re-installing the package, which is kinda lame. Worse, if ever the inetd package is updated, the initscripts would be recreated! This is just retarded and I was beginning to see that update-rc.d should not be used for administration.

I did some more research and it turns out the remove method of update-rc.d is not recommended for what I'm trying to do. In fact, the Debian Security HOWTO cautions against it as well. That text and some users recommend that the /etc/rcN.d/S??service script be removed. Ok I can do that, but how does that remember the startup order? I still have to resort to re-installing the package to get it in the original state.

Ugh, I hate when only half of my question is answered. Yes, Debian truly is an elitist distro.

Comments, Pingbacks:

Comment from: Bill Maas [Visitor]
Yes, Debian surely has a shortcoming here, and not everybody seems keen to admit it. I have been working with RedHat for three years on a daily basis, and I was very glad to have the "rarely used tool" 'sysvinit' at my disposal (so I didn't even need too use chkconfig). I've always been [instinctively] biased against RedHat's proprietaries (including rpm), but in the end some of them did save me a lot of work.

With Debian, it even seems impossible to configure services from graphical mode (I'm using hoary ubuntu, should be one of the more user-friendly Debian-based dists).

Time to start writing a few scripts?


Bill Maas
Permalink 07/02/05 @ 11:58

Leave a comment:

 
 

This is a captcha-picture. It is used to prevent mass-access by robots. (see: www.captcha.net)

You must read and type the 5 chars within 0..9 and A..F, and submit the form.

  

Oh no, I cannot read this. Please, generate a

Viraj's Weblog

This is my personal blog. The views expressed on these pages are mine alone and not those of my employer.

August 2010
Mon Tue Wed Thu Fri Sat Sun
<<  <   >  >>
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31          

Search

Categories


Misc

Syndicate this blog XML

What is RSS?

powered by
b2evolution