Sfoglia il codice sorgente

FHEM mit nofork nicht im Hintergrund starten

Matthias Kleine 8 anni fa
parent
commit
d1f832665d
2 ha cambiato i file con 2 aggiunte e 10 eliminazioni
  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