Skip to content

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

cpx May 23, 2013 1 min read CentOS

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 0 votes
Article Rating
guest

0 Comments
Oldest
Newest Most Voted
0
Would love your thoughts, please comment.x
()
x