summarylogtreecommitdiffstats
path: root/domoticz.service
diff options
context:
space:
mode:
authorIanDury2017-02-18 13:33:26 +0100
committerIanDury2017-02-18 13:33:26 +0100
commit4e350a624a0c700f13c3f6d5518b8f3b4d809a4f (patch)
treec6032990c6b1e99baf8ba4b408019679ec83a219 /domoticz.service
parent053144bec29e24ffff789874fb5288d75d555050 (diff)
downloadaur-4e350a624a0c700f13c3f6d5518b8f3b4d809a4f.tar.gz
Add /var/run handling to service
Diffstat (limited to 'domoticz.service')
-rw-r--r--domoticz.service6
1 files changed, 5 insertions, 1 deletions
diff --git a/domoticz.service b/domoticz.service
index 38447b18da5..c58c3e29fe0 100644
--- a/domoticz.service
+++ b/domoticz.service
@@ -4,7 +4,11 @@ After=network.target
[Service]
User=http
-ExecStart=/opt/domoticz/domoticz -www 8080 -daemon
+Group=http
+PermissionsStartOnly=true
+ExecStartPre=/usr/bin/install -d -m 0700 -o http -g http /var/run/domoticz
+ExecStart=/opt/domoticz/domoticz -www 8080 -pidfile /var/run/domoticz/domoticz.pid -daemon
+PIDFile=/var/run/domoticz/domoticz.pid
WorkingDirectory=/opt/domoticz
RestartSec=5
Restart=on-failure