# HG changeset patch # User IBBoard # Date 1453925912 0 # Node ID b69e3f6708d6e8273ef497b90352f2a67dd71f5d # Parent 009a7a75ddfde8f7f9458e77b9e675deb288b2cb Add another regular command to check that we've not got services requiring a restart diff -r 009a7a75ddfd -r b69e3f6708d6 manifests/templates.pp --- a/manifests/templates.pp Tue Jan 26 20:15:23 2016 +0000 +++ b/manifests/templates.pp Wed Jan 27 20:18:32 2016 +0000 @@ -655,4 +655,11 @@ minute => '30', weekday => '0-6/3', #Sunday, Wednesday and Saturday morning } + # And check whether anything needs restarting + cron { 'check-needs-restarting': + command => '/usr/bin/needs-restarting|grep -v "/usr/lib/systemd\|/usr/sbin/lvmetad\|/usr/lib/polkit-1/polkitd"', + hour => '4', + minute => '45', + weekday => '0-6/3', #Sunday, Wednesday and Saturday morning + } }