2017-03-03 11:16:29 +00:00
|
|
|
# $Id$
|
2017-12-25 10:32:28 +00:00
|
|
|
|
2017-03-03 11:16:29 +00:00
|
|
|
[Unit]
|
|
|
|
Description=FHEM Home Automation
|
2017-12-25 10:32:28 +00:00
|
|
|
Wants=network.target
|
|
|
|
After=network.target
|
2019-04-21 13:26:17 +00:00
|
|
|
#Requires=postgresql.service
|
|
|
|
#After=postgresql.service
|
|
|
|
#Requires=mysql.service
|
|
|
|
#After=mysql.service
|
2017-03-03 11:16:29 +00:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=forking
|
2017-12-25 10:32:28 +00:00
|
|
|
User=fhem
|
|
|
|
Group=dialout
|
|
|
|
WorkingDirectory=/opt/fhem
|
2017-12-25 10:34:23 +00:00
|
|
|
ExecStart=/usr/bin/perl fhem.pl fhem.cfg
|
|
|
|
#ExecStart=/usr/bin/perl fhem.pl configDB
|
2018-01-26 11:54:41 +00:00
|
|
|
Restart=always
|
2017-03-03 11:16:29 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|