Re: CentOS/RHEL daemon settings.

From: Steven Kurylo <sk_at_no.spam.please>
Date: Fri Jun 30 2006 - 17:55:31 CST

On 6/30/06, Lance Levsen <lance@catprint.ca> wrote:
> Scott Wunsch wrote:
>
> > chkconfig httpd on
> > chkconfig --list httpd
> >
> > On the flip side, I've always wondered how one does this on Debian or
> > Ubuntu, because I don't think they have chkconfig...
> >
>
> In Debian it's update-rc.d
>
> update-rc.d foobar start 20 2 3 4 5 . stop 20 0 1 6 .

No, thats how you set and remove runlevels. Programs should have a
file in /etc/default/ where you set the start on boot flag.

$ cat /etc/default/apache2
# 0 = start on boot; 1 = don't start on boot
NO_START=1

$ cat /etc/default/openvpn
# This is the configuration file for /etc/init.d/openvpn
# Start only these VPNs automatically via init script.
# Allowed values are "all", "none" or space separated list of
# names of the VPNs. If empty, "all" is assumed.
#
#AUTOSTART="all"
AUTOSTART="none"

Too bad they're not consistent. :-)
Received on Fri Jun 30 17:55:39 2006

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