1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-26 06:50:09 +03:00

bug #4365: fix path in logrotate call

This commit is contained in:
Javi Fontan 2016-05-20 19:12:15 +02:00
parent 2fd181040e
commit 0b91e9382b
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ Group=oneadmin
User=oneadmin
ExecStart=/usr/bin/ruby /usr/lib/one/sunstone/sunstone-server.rb
ExecStartPre=/sbin/logrotate -s /tmp/logrotate.state -f /etc/logrotate.d/opennebula
ExecStartPre=/usr/sbin/logrotate -s /tmp/logrotate.state -f /etc/logrotate.d/opennebula
PIDFile=/var/run/one/sunstone.pid
[Install]

View File

@ -18,7 +18,7 @@ ExecStart=/usr/bin/oned -f
# Log file location must exist
ExecStartPre=/bin/mkdir -p /var/log/one
ExecStartPre=/bin/chown oneadmin:oneadmin /var/log/one
ExecStartPre=/sbin/logrotate -s /tmp/logrotate.state -f /etc/logrotate.d/opennebula
ExecStartPre=/usr/sbin/logrotate -s /tmp/logrotate.state -f /etc/logrotate.d/opennebula
ExecStop=/bin/kill -TERM $MAINPID
PIDFile=/var/run/one/oned.pid