#!/bin/bash # # chkconfig: - 57 75 # description: test service start() { echo "Starting test ..." echo 3 >> /tmp/sunyu.txt } stop() { echo "Stopping test ..." echo 2 >> /tmp/sunyu.txt } # See how we were called. case "$1" in start) start ;; stop) stop ;; restart|force-reload) stop start ;; *) echo $"Usage: $0 {start|stop|restart|force-reload}" exit 2 esac //shell/6702