From e7f8f8f23da8a2e3d500e06d18a7cafc1c416eda Mon Sep 17 00:00:00 2001 From: betateilchen <> Date: Mon, 25 Dec 2017 10:32:28 +0000 Subject: [PATCH] ./contrib/init-scripts/fhem.service: sysv init scripts no longer needed git-svn-id: https://svn.fhem.de/fhem/trunk@15684 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/contrib/init-scripts/fhem.service | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/fhem/contrib/init-scripts/fhem.service b/fhem/contrib/init-scripts/fhem.service index 070501d1f..ea9f6fd14 100644 --- a/fhem/contrib/init-scripts/fhem.service +++ b/fhem/contrib/init-scripts/fhem.service @@ -1,13 +1,20 @@ # $Id$ + [Unit] Description=FHEM Home Automation +Wants=network.target +After=network.target [Service] Type=forking -ExecStart=/etc/init.d/fhem start -ExecStop=//etc/init.d/fhem stop +User=fhem +Group=dialout +WorkingDirectory=/opt/fhem +#ExecStart=/usr/bin/perl fhem.pl fhem.cfg +ExecStart=/usr/bin/perl fhem.pl configDB Restart=always RestartSec=5 [Install] WantedBy=multi-user.target +