diff --git a/fhem/contrib/init-scripts/fhem.service b/fhem/contrib/init-scripts/fhem.service index 439880da5..55eafd802 100644 --- a/fhem/contrib/init-scripts/fhem.service +++ b/fhem/contrib/init-scripts/fhem.service @@ -12,12 +12,13 @@ Group=dialout WorkingDirectory=/opt/fhem ExecStart=/usr/bin/perl fhem.pl fhem.cfg #ExecStart=/usr/bin/perl fhem.pl configDB -# uncomment next two lines if auto-restart desired +# uncomment next two lines if auto-restart desired # please select restart options according your needs # Restart=on-abnormal # uncomment for crash and watchdog event recovery only (keeps shutdown working) -# Restart=always # alternativly uncomment this line for recover always -# RestartSec=5 # uncomment always if restart required! + +Restart=always # alternativly uncomment this line for recover always +RestartSec=5 # uncomment always if restart required! [Install] WantedBy=multi-user.target