summarylogtreecommitdiffstats
path: root/domoticz.service
blob: 691dee388817132c3fd5dffa27e45a01c6fe3ed5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
[Unit]
Description=Domoticz Daemon
After=network.target

[Service]
User=http
Group=http
PermissionsStartOnly=true
ExecStartPre=/usr/bin/install -d -m 0700 -o http -g http /run/domoticz
ExecStart=/opt/domoticz/domoticz -www 8080 -pidfile /run/domoticz/domoticz.pid
PIDFile=/run/domoticz/domoticz.pid
WorkingDirectory=/opt/domoticz
RestartSec=5
Restart=on-failure

[Install]
WantedBy=multi-user.target