mirror of
https://codeberg.org/gwh/slackbuilds.git
synced 2024-11-16 19:51:19 +01:00
27 lines
484 B
Bash
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
|