Enable service in runlevel 345:/sbin/chkconfig --level 345 Templateon #!/bin/sh ############################################################################### # myscript This script starts or stops the myscript server # # chkconfig: 235 99 01 # description: start / stop myscript case "$*" in 'start') # myscript Start Command ;; 'stop') # myscript Stop Command ;; * ) echo "Usage: $0 { start | stop }" exit 1 ;; esac exit 0