Към съдържанието
bub.im

Linux: Fix Configuration of init.d Service that does not support chkconfig

cpx May 23, 2013 1 min четене CentOS Linux

RPM Based Linux Flavors like CentOS need additional information in the Init script in order to work properly with chkconfig :

   # description: Description of the script
   # processname: squid

 

 

chkconfig --level 2345 scriptname

 

#!/bin/sh
    # this script starts and stops Squid
    start /usr/local/squid/sbin/squid -s
    echo -n Squid
    stop /usr/local/squid/sbin/squid -k shutdown

 

#chkconfig: 2345 95 20
# description: Description of the script
# processname: squid

 

Бъди първият коментирал

защитено · без проследяване

0 коментара