Re: CentOS/RHEL daemon settings.

From: Steven Kurylo <sk_at_no.spam.please>
Date: Fri Jun 30 2006 - 19:11:16 CST

> The question, as I read it, was how the /etc/rc#.d/ files are set (as
> chkconfig does in RH based distros) if so, then update-rc.d is the
> correct correlation to that.
>
> Am I mistaken or are we talking about different things?
>
> The way I see it, if I write a startup script (say setting up an SSH
> tunnel, or starting Oracle) and put it in init.d just creating a
> /etc/default/ file won't set it to start in runlevel two. Running
> update-rc.d on it will though as it will create the correct symlnks in
> /etc/rc2.d/

I read the question to mean "In debian, I've installed
(httpd|sshd|etc) and I want to control whether it starts or not on
boot". Thats where you edit /etc/defaults/*

If you use update-rc.d to delete the startup scripts and the package
is upgraded, the startup scripts will be reinstalled. conffiles
aren't auto-upgraaded, so your changed to /etc/defaults/* will be
kept.

Now if the question is "I've a random program which I wrote an init
script for, how do I add the script to the different runlevels? (other
than manually adding it to each level)" then yes, use update-rc.d. Or
if the question is, how do I change what run level the program
starts/stops on, then its update-rc.d again.
Received on Fri Jun 30 19:11:23 2006

This archive was generated by hypermail 2.1.8 : Fri Sep 08 2006 - 23:26:38 CST