slackbuilds/a/UNUSED/fspd/rc.fspd
Gwenhael Le Moine 0da671b6e8 big spring cleanup, putting aside currently unused scripts
Signed-off-by: Gwenhael Le Moine <gwenhael.le.moine@gmail.com>
2013-03-25 22:41:45 +01: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