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
|
2024-02-11 21:07:06 +00:00
|
|
|
|
|
|
|
# In case of suspicious reconnect problems after reboot
|
|
|
|
# you can try to replace the above lines for
|
|
|
|
# network target by the below lines with
|
|
|
|
# network-online.target
|
|
|
|
#
|
|
|
|
# network-online.target will only work if
|
|
|
|
# "modern" network management tools (e.g. NetworkManager)
|
|
|
|
# are used.
|
|
|
|
#
|
|
|
|
# Wants=network-online.target
|
|
|
|
# After=network-online.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
|