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:
rudolfkoenig
2012-10-27 16:23:09 +00:00
parent 696df905cd
commit 3dc5c08882
17 changed files with 274 additions and 336 deletions

View File

@@ -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"

View File

@@ -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')

View File

@@ -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