Init Script Skeleton Example

#!/bin/bash

# SERVICENAME This init script controls the service SERVICENAME
#
# Author: CentOS How Tos <info@centoshowtos.foo>
#
# chkconfig: 345 83 06

# Source function library.
. /etc/rc.d/init.d/functions

case "$1" in
start)
echo "Need to write a start function"
;;
stop)
echo "Need to write a stop function"
;;
restart)
echo "Need to write a restart function"
;;
*)
echo "Usage $0 start stop restart graceful status"
;;
esac
(Comments)

Comments