From 1e1cc11d9ad617df1e53cbc7da658e9987d6cc21 Mon Sep 17 00:00:00 2001 From: Joris van Lieshout Date: Sat, 8 Nov 2014 17:21:43 +0100 Subject: [PATCH] Logrotate is called from crontab. Debian crontab does not include everything in it's path. Therefore reference to these bins need to be absoluut. Signed-off-by: Daan Hoogland --- systemvm/patches/debian/config/etc/logrotate.d/cloud | 2 +- systemvm/patches/debian/config/etc/logrotate.d/conntrackd | 2 +- systemvm/patches/debian/config/etc/logrotate.d/rsyslog | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/systemvm/patches/debian/config/etc/logrotate.d/cloud b/systemvm/patches/debian/config/etc/logrotate.d/cloud index 37440ace69f..617b09b2adc 100644 --- a/systemvm/patches/debian/config/etc/logrotate.d/cloud +++ b/systemvm/patches/debian/config/etc/logrotate.d/cloud @@ -22,6 +22,6 @@ compress delaycompress postrotate - pkill socat > /dev/null + /usr/bin/pkill socat > /dev/null endscript } diff --git a/systemvm/patches/debian/config/etc/logrotate.d/conntrackd b/systemvm/patches/debian/config/etc/logrotate.d/conntrackd index d09d752e11e..8139191e27f 100644 --- a/systemvm/patches/debian/config/etc/logrotate.d/conntrackd +++ b/systemvm/patches/debian/config/etc/logrotate.d/conntrackd @@ -7,7 +7,7 @@ postrotate if [ -e /var/run/conntrackd.sock ]; then - invoke-rc.d conntrackd restart > /dev/null + /usr/sbin/invoke-rc.d conntrackd restart > /dev/null fi endscript } diff --git a/systemvm/patches/debian/config/etc/logrotate.d/rsyslog b/systemvm/patches/debian/config/etc/logrotate.d/rsyslog index d2a04ca97fe..faa87761334 100644 --- a/systemvm/patches/debian/config/etc/logrotate.d/rsyslog +++ b/systemvm/patches/debian/config/etc/logrotate.d/rsyslog @@ -7,7 +7,7 @@ delaycompress compress postrotate - invoke-rc.d rsyslog rotate > /dev/null + /usr/sbin/invoke-rc.d rsyslog rotate > /dev/null endscript } @@ -32,6 +32,6 @@ delaycompress sharedscripts postrotate - invoke-rc.d rsyslog rotate > /dev/null + /usr/sbin/invoke-rc.d rsyslog rotate > /dev/null endscript }