Fred K Ollinger on Tue, 11 Mar 2003 17:16:05 -0500


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] "services" under Linux


> > At the begining of every script in the init.d directory is a comment that
> > looks something like:
> >
> > # chkconfig 20 30
> >
> > These numbers (sort of) determine the order the scripts are run at
> > startup/shutdown. The first number follows the S when the script is set
> > to run at boot and the second number follows the K when the script is not
> > set to run at boot.
>
> You are correct--i see it.  Never knew that before.  Now i gotta
> get familiar with chkconfig....
>
> i also used to drop script stuff into /etc/rc.d/rcX.d (but not anymore);
> i wonder if chkconfig will see them too....

Best way to do this is to copy an existing script to create your own. I
have a sample script if you are interested that works under rh7.3. In the
script, you can specify info that chkconfig can use, otherwise, chkconfig
will not work:

######################################################################
# chkconfig information:                                             #
######################################################################
# chkconfig: 35 11 90
# description: rc script to start, stop, restart, and get the \
# status of the voxbo daemon.

Fred
_________________________________________________________________________
Philadelphia Linux Users Group        --       http://www.phillylinux.org
Announcements - http://lists.netisland.net/mailman/listinfo/plug-announce
General Discussion  --   http://lists.netisland.net/mailman/listinfo/plug