chkconfig automates what we used to do by hand.
When you are using chkconfig there is a line in shell file that tells
the config which run levels to start at and at what point in the run
level to start that looks like
# chkconfig: 345 85 15
I got the above out of httpd (apache) and it says to start apache at
runlevel 3,4,and 5 and to start it at level 85 in the boot sequence and
to shut it down at level 15 in the kill sequence.
When you run chkconfig httpd on it looks inside the statup file for that
line and then makes the proper soft links in /etc/rc3.d /etc/rc4.d and
/etc/rc5.d so that it will be started and killed at the proper point in
the boot/shutdown sequence.
To start and stop the server once the system is up and running you need
to either run the start script manually be it with the service command
or actually running the script itself, or changing run levels with
telinit (see man telinit for details). You can also reboot or course,
but you loose that nice uptime.
Debian users look into update-rc.d for a little less automated version
of chkconfig.
Brian Cluff
On Mon, 2002-09-16 at 08:54, Mark Berkwitt wrote:
> It worked. I reboot and I could see httpd was being started from the boot
> screen.
> Thanks everyone.
>
> On Monday 16 September 2002 06:15 am, daz@undertaker.homeip.net wrote:
> > On Mon, 16 Sep 2002, Mark Berkwitt wrote:
> > > Ok, so I just ran "./chkconfig httpd on" from /sbin. I then tried
> > > http://localhost/ and nada.
> >
> > 'chkconfig httpd on' only ensures that httpd will start at the current
> > runlevel the next time you reboot (or switch runlevels).
> >
> > > If I were to use /etc/rc.d/init.d/httpd start
> > > I would be able to see my index.html, or whatever topped the default
> > > list.
> >
> > 'chkconfig httpd on' doesnt start it for you. '/etc/rc.d/init.d/httpd
> > start' does.
> >
> > > What did running "chkconfig httpd on" do and how can I do what I want
> > > which is actually start httpd and control whether or not it starts at
> > > boot?
> >
> > David
>
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss