1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-13 12:58:17 +03:00

B #5192: Cleanup oned lockfile on systemd service stop/fail (#340)

This commit is contained in:
Vlastimil Holer 2017-06-16 18:01:02 +02:00 committed by Ruben S. Montero
parent 7c8390a1c6
commit 1f00586c65

View File

@ -20,6 +20,7 @@ ExecStartPre=/bin/mkdir -p /var/log/one
ExecStartPre=/bin/chown oneadmin:oneadmin /var/log/one
ExecStartPre=-/usr/sbin/logrotate -s /tmp/logrotate.state -f /etc/logrotate.d/opennebula
ExecStop=/bin/kill -TERM $MAINPID
ExecStopPost=/bin/rm -f /var/lock/one/one
PIDFile=/var/run/one/oned.pid
[Install]