In postrotate section you have a line [ -r /etc/conf.d/jenkins ] && source /etc/conf.d/jenkins that contains ``source'' shell built-in available only in bash. This results in ignoring Jenkins configuration file on systems with dash, or other POSIX shell implementation. On a side note: why do you need this: if [ -s /var/run/jenkins/jenkins.pid ]; then JPID=`cat /var/run/jenkins/jenkins.pid` test -n "`find /proc/$JPID -maxdepth 0 -user ${RUN_AS:-jenkins} 2>/dev/null`" && kill -s ALRM $JPID || : fi Why not pkill? Reproducible: Always
CC'ing the original author of the logrotate file.
Replaced "source" with "." in -r1.logrotate.