slackbuilds/a/fspd/rc.fspd
2011-02-08 11:01:51 +07:00

27 lines
484 B
Bash

#!/bin/sh
source /etc/conf.d/fsp.conf
case $1 in
"start")
if [ -e $PID_FILE ]; then
echo "fspd already running ($(cat $PID_FILE))"
else
exec $FSPD_DIR/fspd &
fi
;;
"stop")
if [ -e $PID_FILE ]; then
kill $(cat $PID_FILE)
rm $PID_FILE
else
echo "fspd not running"
fi
;;
"restart")
$0 stop
$0 start
;;
*)
;;
esac