How to get this init.d script to start at server restart?
Make sure your script is added for service management by chkconfig
. Use chkconfig --list
to see the list and use chkconfig --add scriptname
if it's not there. After that configure the runlevels you want it to be called into. I would guess it's 3, 4 and 5 so: chkconfig --level 345 scriptname on
.