Explorar o código

FHEM mit nofork nicht im Hintergrund starten

Matthias Kleine %!s(int64=8) %!d(string=hai) anos
pai
achega
d1f832665d
Modificáronse 2 ficheiros con 2 adicións e 10 borrados
  1. 1 0
      fhem/data/fhem.cfg
  2. 1 10
      fhem/start.sh

+ 1 - 0
fhem/data/fhem.cfg

@@ -9,6 +9,7 @@ attr global sendStatistics onUpdate
 attr global statefile ./log/fhem.save
 attr global updateInBackground 0
 attr global verbose 2
+attr global nofork 1
 
 define telnetPort telnet 7072 global
 attr telnetPort room System

+ 1 - 10
fhem/start.sh

@@ -5,13 +5,4 @@ cd /opt/fhem
 port=7072
 
 echo "Starte FHEM"
-perl fhem.pl fhem.cfg
-
-echo "FHEM Update"
-perl fhem.pl 7072 "update all"
-
-echo "FHEM Neustart"
-perl fhem.pl 7072 "shutdown restart"
-
-echo "Alles fertig"
-tail -f /dev/null
+perl fhem.pl fhem.cfg