summarylogtreecommitdiffstats
path: root/opennebula.service
diff options
context:
space:
mode:
authorGeorg Brunmayr2017-09-01 08:40:47 +0200
committerGeorg Brunmayr2017-09-01 08:40:47 +0200
commit92edc8edc0d5004cb2bdfe60154639231de76fe3 (patch)
tree786613b1b6ed1a03e4407cb8be67330ecdf49d25 /opennebula.service
parentc0355bdaf49393deef8d4586a88cfdd276bba67d (diff)
downloadaur-92edc8edc0d5004cb2bdfe60154639231de76fe3.tar.gz
Cleanup stale lock file in opennebula.service
Fix wrong service call in opennebula-oneflow.service
Diffstat (limited to 'opennebula.service')
-rw-r--r--opennebula.service1
1 files changed, 1 insertions, 0 deletions
diff --git a/opennebula.service b/opennebula.service
index 1c20bbe7304..443641a8825 100644
--- a/opennebula.service
+++ b/opennebula.service
@@ -18,6 +18,7 @@ ExecStartPre=/bin/mkdir -p /var/log/one
ExecStartPre=/bin/chown oneadmin:cloud /var/log/one
ExecStartPre=/usr/bin/logrotate -s /tmp/logrotate.state -f /etc/logrotate.d/opennebula
ExecStop=/bin/kill -TERM $MAINPID
+ExecStopPost=/usr/bin/rm /var/lock/one/one
PIDFile=/var/run/one/oned.pid
Restart=on-abnormal