mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-14 09:35:29 +00:00
./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
This commit is contained in:
parent
218d367543
commit
e7f8f8f23d
@ -1,13 +1,20 @@
|
|||||||
# $Id$
|
# $Id$
|
||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=FHEM Home Automation
|
Description=FHEM Home Automation
|
||||||
|
Wants=network.target
|
||||||
|
After=network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=forking
|
Type=forking
|
||||||
ExecStart=/etc/init.d/fhem start
|
User=fhem
|
||||||
ExecStop=//etc/init.d/fhem stop
|
Group=dialout
|
||||||
|
WorkingDirectory=/opt/fhem
|
||||||
|
#ExecStart=/usr/bin/perl fhem.pl fhem.cfg
|
||||||
|
ExecStart=/usr/bin/perl fhem.pl configDB
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=5
|
RestartSec=5
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user