Skip to content

Commit 1cc733b

Browse files
jvanlieshoutDaanHoogland
authored andcommitted
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 <daan@onecht.net>
1 parent 54ec268 commit 1cc733b

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎systemvm/patches/debian/config/etc/logrotate.d/cloud‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@
2222
compress
2323
delaycompress
2424
postrotate
25-
pkill socat > /dev/null
25+
/usr/bin/pkill socat > /dev/null
2626
endscript
2727
}

‎systemvm/patches/debian/config/etc/logrotate.d/conntrackd‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
postrotate
99
if [ -e /var/run/conntrackd.sock ]; then
10-
invoke-rc.d conntrackd restart > /dev/null
10+
/usr/sbin/invoke-rc.d conntrackd restart > /dev/null
1111
fi
1212
endscript
1313
}

‎systemvm/patches/debian/config/etc/logrotate.d/rsyslog‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
delaycompress
88
compress
99
postrotate
10-
invoke-rc.d rsyslog rotate > /dev/null
10+
/usr/sbin/invoke-rc.d rsyslog rotate > /dev/null
1111
endscript
1212
}
1313

@@ -32,6 +32,6 @@
3232
delaycompress
3333
sharedscripts
3434
postrotate
35-
invoke-rc.d rsyslog rotate > /dev/null
35+
/usr/sbin/invoke-rc.d rsyslog rotate > /dev/null
3636
endscript
3737
}

0 commit comments

Comments
 (0)