]> git.pld-linux.org Git - packages/logrotate.git/commitdiff
allow logrotate cron script to take arguments, may be useful for debugging
authorElan Ruusamäe <glen@delfi.ee>
Sun, 15 Sep 2013 02:01:27 +0000 (05:01 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Sun, 15 Sep 2013 02:02:02 +0000 (05:02 +0300)
logrotate.cron

index d80accdeeb6820a26a4082372c9621f9d0132efc..daf244fb16be45e5eb0d3b22caa02e6c91ac889a 100755 (executable)
@@ -9,7 +9,7 @@ fi
 # NOTE: DISABLE_LOGROTATE_CRON is not official option to tune, it's only here to handle migration from < 3.8.6-1
 [ "$DISABLE_LOGROTATE_CRON" = "yes" ] && exit 0
 
-/usr/sbin/logrotate $ARG /etc/logrotate.conf
+/usr/sbin/logrotate $ARG /etc/logrotate.conf "$@"
 EXITVALUE=$?
 if [ $EXITVALUE != 0 ]; then
        /usr/bin/logger -t logrotate "ALERT exited abnormally with [$EXITVALUE]"
This page took 0.080208 seconds and 4 git commands to generate.