mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-01 19:30:31 +00:00
aba744d1d2
git-svn-id: https://svn.fhem.de/fhem/trunk@6617 2b470e98-0d58-463d-a4d8-8e2adae1ed80
33 lines
362 B
Bash
Executable File
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
|