summarylogtreecommitdiffstats
path: root/opennebula.service
diff options
context:
space:
mode:
authorsulaweyo2017-09-20 14:45:33 +0200
committersulaweyo2017-09-20 14:45:33 +0200
commitcdfd4e51f80406fc74f97ae54d75fe8334d81417 (patch)
treece0735deccbe6ee838918a605ded63e28955516a /opennebula.service
parent2ddc061bf51f5ae42ed93145603343fe0cfa7c7f (diff)
downloadaur-cdfd4e51f80406fc74f97ae54d75fe8334d81417.tar.gz
Update to upstream 5.4.1
Diffstat (limited to 'opennebula.service')
-rw-r--r--opennebula.service5
1 files changed, 3 insertions, 2 deletions
diff --git a/opennebula.service b/opennebula.service
index 89d2e683a56..8587d3f6612 100644
--- a/opennebula.service
+++ b/opennebula.service
@@ -18,9 +18,10 @@ ExecStart=/usr/bin/oned -f
# Log file location must exist
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
+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
+ExecStopPost=/usr/bin/rm -f /var/lock/one/one
+ExecStopPost=/usr/share/one/follower_cleanup
PIDFile=/var/run/one/oned.pid
Restart=always