5.3 preparation/changes
git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@2027 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
#!/bin/sh
|
||||
# by Matthias Bauer
|
||||
|
||||
cd /opt/fhem
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
echo "Starting $0"
|
||||
fhem.pl /etc/fhem/fhem.conf
|
||||
perl fhem.pl fhem.cfg
|
||||
;;
|
||||
stop)
|
||||
echo "Stopping $0"
|
||||
|
||||
@@ -12,20 +12,18 @@
|
||||
### END INIT INFO
|
||||
|
||||
set -e
|
||||
|
||||
fhz=/usr/bin/fhem.pl
|
||||
conf=/etc/fhem.cfg
|
||||
cd /opt/fhem
|
||||
port=7072
|
||||
|
||||
case "$1" in
|
||||
'start')
|
||||
echo "Starting fhem..."
|
||||
$fhz $conf
|
||||
perl fhem.pl fhem.cfg
|
||||
RETVAL=$?
|
||||
;;
|
||||
'stop')
|
||||
echo "Stopping fhem..."
|
||||
$fhz $port "shutdown"
|
||||
perl fhem.pl $port "shutdown"
|
||||
RETVAL=$?
|
||||
;;
|
||||
'status')
|
||||
|
||||
@@ -11,4 +11,5 @@ stop on runlevel [016]
|
||||
expect fork
|
||||
respawn
|
||||
|
||||
exec /usr/bin/fhem.pl /etc/fhem.cfg
|
||||
chdir /opt/fhem
|
||||
exec perl fhem.pl fhem.cfg
|
||||
|
||||
Reference in New Issue
Block a user