2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-01 07:19:24 +00:00
fhem-mirror/fhem/contrib/Synology/scripts/start-stop-status
w4bremer aba744d1d2 Synology: Add basic files for spk creation
git-svn-id: https://svn.fhem.de/fhem/trunk@6617 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2014-09-25 18:34:13 +00:00

33 lines
362 B
Bash
Executable File

#!/bin/sh
DIR='/var/packages/FHEM/scripts'
case $1 in
start)
${DIR}/fhem.sh start
exit 0
;;
stop)
${DIR}/fhem.sh stop
exit 0
;;
restart)
${DIR}/fhem.sh stop
${DIR}/fhem.sh start
exit 0
;;
status)
${DIR}/fhem.sh status
if [ "$?" = "0" ]; then
exit 0
else
exit 1
fi
;;
log)
${DIR}/fhem.sh log
exit 0
;;
esac
exit 0