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

Re: INIT SCRIPTS explanation



On Thu, Sep 21, 2000 at 11:48:24AM -0400, Barry L. Kline wrote:
> To start a service, create a symlink that starts with S that points
> back to the script you created in /etc/rc.d/init.d.  The two digits
> that follow the S are used to order the execution of the scripts.

If you add a comment in the header of your script, like this:
# chkconfig: 345 25 75

then you can use 'chkconfig --add <name>' to create all the symlinks;
the above script would be "on" in runlevels 345, with start priority
25, and kill priority 75.  (See the chkconfig manpage for details, and
the scripts in /etc/rc.d/init.d for examples.)

Cheers!
-- 
\Peter.





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