/var/log/spectrum/*.log { daily missingok rotate 7 compress delaycompress notifempty create 640 jabber jabber sharedscripts postrotate PROTOLIST=`spectrumctl --machine-readable list | \ awk -F "," '{ if ($4 == "running") { print $2 } }'` for PROTO in ${PROTOLIST}; do spectrumctl -c /etc/spectrum/${PROTO}.cfg reload > /dev/null done endscript }