Procházet zdrojové kódy

FHEM mit nofork nicht im Hintergrund starten

Matthias Kleine před 8 roky
rodič
revize
d1f832665d
2 změnil soubory, kde provedl 2 přidání a 10 odebrání
  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