Re: using chkconfig

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

 



On Wed, 2003-12-24 at 03:04, Kashif Awan wrote:
> Hello everyone 
> I have compiled the binaries of squid 2.5 and also
> created a startup script in /etc/rc.d/init.d .Now I
> want to use chkconfig to manage the run levels to
> start and shutdown in different run levels, but when I
> run the command chkconfig --add squid it shows an
> error that the service squid is not supported by
> chkconfig .Can somebody 
> tell me what is the problem.

Your service script requires "chkconfig:" and "description:" lines at
the top to support chkconfig.  See the below example from my sshd
script.  The chkconfig line provides three values: the default levels to
run in (2345), the start sequence (S55), and the kill sequence (K25).

#!/bin/bash
#
# Init file for OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: OpenSSH server daemon


HTH.

-- 
Jason Dixon, RHCE
DixonGroup Consulting
http://www.dixongroup.net


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux