X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=files%2Fetc%2Fcron.d%2Fdsa-puppet-stuff;h=5bbf6c443fd0fe13c1e10f25fda35accbf0e971d;hb=0bfc1cc65120e22af2fd5e96ec231825213f33e2;hp=72724ee035a828177cf7808eab664ecbcbca52c9;hpb=9971b249bced3460f05dbd99b58c87a200993e57;p=mirror%2Fdsa-puppet.git diff --git a/files/etc/cron.d/dsa-puppet-stuff b/files/etc/cron.d/dsa-puppet-stuff index 72724ee03..5bbf6c443 100644 --- a/files/etc/cron.d/dsa-puppet-stuff +++ b/files/etc/cron.d/dsa-puppet-stuff @@ -1,3 +1,3 @@ SHELL=/bin/bash @hourly root [ ! -d /var/cache/dsa ] || touch /var/cache/dsa/cron.alive -34 */4 * * * root [ ! -x /usr/sbin/puppetd ] || ( sleep $(( $RANDOM \% 3600 )) && /usr/sbin/puppetd --factsync -o --no-daemonize ) +34 */4 * * * root if [ -x /usr/sbin/puppetd ]; then sleep $(( $RANDOM \% 3600 )); if [ -x /usr/bin/timeout ]; then TO="timeout 3600"; else TO=""; fi; $TO /usr/sbin/puppetd --factsync -o --no-daemonize 2>&1 | grep -v 'v6: error fetching interface information: Device not found' ; fi