-killproc() {
- pid_file=""
- delay=10
- while test $# -gt 0; do
- case $1 in
- -p)
- pid_file=$2
- shift 2
- ;;
- -d)
- delay=$2
- shift 2
- ;;
- *)
- break;
- ;;
- esac
- done
- /sbin/killproc -p $pid_file $*
-}
-status() {
- pid_file=""
- while test $# -gt 0; do
- case $1 in
- -p)
- pid_file=$2
- shift 2
- ;;
- *)
- break;
- ;;
- esac
- done
- if test -f $pid_file && kill -0 `cat $pid_file`; then
- echo "$DAEMON `cat $pid_file` is running"
- return 0
- fi
- echo "$DAEMON is not running"
- return 1
-}
+ killproc() {
+ pid_file=""
+ delay=10
+ while test $# -gt 0; do
+ case $1 in
+ -p)
+ pid_file=$2
+ shift 2
+ ;;
+ -d)
+ delay=$2
+ shift 2
+ ;;
+ *)
+ break;
+ ;;
+ esac
+ done
+ /sbin/killproc -p $pid_file $*
+ }
+ status() {
+ pid_file=""
+ while test $# -gt 0; do
+ case $1 in
+ -p)
+ pid_file=$2
+ shift 2
+ ;;
+ *)
+ break;
+ ;;
+ esac
+ done
+ if test -f $pid_file && kill -0 `cat $pid_file`; then
+ echo "$DAEMON `cat $pid_file` is running"
+ return 0
+ fi
+ echo "$DAEMON is not running"
+ return 1
+ }