2020-10-05 23:05:58 +02:00
|
|
|
[Unit]
|
|
|
|
Description=domoticz_service
|
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
User=__APP__
|
|
|
|
Group=__APP__
|
2020-11-07 10:24:49 +01:00
|
|
|
ExecStart=__FINALPATH__/domoticz -www __PORT__ -sslwww 0 -log /var/log/__APP__/__APP__.log -loglevel normal,status
|
2020-10-05 23:05:58 +02:00
|
|
|
WorkingDirectory=__FINALPATH__/
|
|
|
|
PermissionsStartOnly=true
|
2021-01-27 09:05:36 +01:00
|
|
|
ExecStartPre=setcap 'cap_net_bind_service=+ep cap_net_raw=+eip' __FINALPATH__/domoticz
|
2020-10-05 23:05:58 +02:00
|
|
|
Restart=on-failure
|
|
|
|
RestartSec=1m
|
|
|
|
#StandardOutput=null
|
|
|
|
[Install]
|
2021-01-27 09:05:36 +01:00
|
|
|
WantedBy=multi-user.target
|