Home Linux Distros Redhat
Enable service in runlevel 345:

/sbin/chkconfig --level 345 <serviceName> on


Template

#!/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