Skip to content

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

cpx May 23, 2013 1 min read 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

 

Be the first to comment

protected · no tracking

0 comments