diff options
author | IanDury | 2017-02-18 13:33:26 +0100 |
---|---|---|
committer | IanDury | 2017-02-18 13:33:26 +0100 |
commit | 4e350a624a0c700f13c3f6d5518b8f3b4d809a4f (patch) | |
tree | c6032990c6b1e99baf8ba4b408019679ec83a219 /domoticz.service | |
parent | 053144bec29e24ffff789874fb5288d75d555050 (diff) | |
download | aur-4e350a624a0c700f13c3f6d5518b8f3b4d809a4f.tar.gz |
Add /var/run handling to service
Diffstat (limited to 'domoticz.service')
-rw-r--r-- | domoticz.service | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/domoticz.service b/domoticz.service index 38447b18da5b..c58c3e29fe01 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 |