From f6b717ee13c473194f6694efff294ccb7d80975d Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sun, 6 Jul 2008 11:28:10 +0200 Subject: [PATCH] [project @ peter@palfrader.org-20080706092810-469h8dizgat025n2] Move script calls from cron.daily to cron.d @daily and @reboot --- dsa-nagios-nrpe-config/debian/changelog | 5 +++-- dsa-nagios-nrpe-config/debian/cron.d | 7 +++++++ dsa-nagios-nrpe-config/debian/cron.daily | 5 ----- 3 files changed, 10 insertions(+), 7 deletions(-) create mode 100644 dsa-nagios-nrpe-config/debian/cron.d delete mode 100644 dsa-nagios-nrpe-config/debian/cron.daily diff --git a/dsa-nagios-nrpe-config/debian/changelog b/dsa-nagios-nrpe-config/debian/changelog index a582cbf..53713a9 100644 --- a/dsa-nagios-nrpe-config/debian/changelog +++ b/dsa-nagios-nrpe-config/debian/changelog @@ -1,8 +1,9 @@ dsa-nagios-nrpe-config (XX) unstable; urgency=low - * Move apt status update from cron.daily to usr/sbin/dsa-update-apt-status + * Move apt status update from cron.daily to usr/sbin/dsa-update-apt-status. + * Move script calls from cron.daily to cron.d @daily and @reboot. - -- Peter Palfrader Sun, 06 Jul 2008 11:23:44 +0200 + -- Peter Palfrader Sun, 06 Jul 2008 11:27:36 +0200 dsa-nagios-nrpe-config (45) unstable; urgency=low diff --git a/dsa-nagios-nrpe-config/debian/cron.d b/dsa-nagios-nrpe-config/debian/cron.d new file mode 100644 index 0000000..389874f --- /dev/null +++ b/dsa-nagios-nrpe-config/debian/cron.d @@ -0,0 +1,7 @@ +@reboot root sleep 10m && [ -x /usr/share/dsa/weak-ssh-keys-check ] && /usr/share/dsa/weak-ssh-keys-check -s /var/cache/dsa/nagios/weak-ssh-keys +@daily root [ -x /usr/share/dsa/weak-ssh-keys-check ] && /usr/share/dsa/weak-ssh-keys-check -s /var/cache/dsa/nagios/weak-ssh-keys + +@reboot root sleep 15m && [ -x /usr/sbin/dsa-update-apt-status ] && /usr/sbin/dsa-update-apt-status +@daily root [ -x /usr/sbin/dsa-update-apt-status ] && /usr/sbin/dsa-update-apt-status + +# vim:ft=crontab: diff --git a/dsa-nagios-nrpe-config/debian/cron.daily b/dsa-nagios-nrpe-config/debian/cron.daily deleted file mode 100644 index 09b9631..0000000 --- a/dsa-nagios-nrpe-config/debian/cron.daily +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash - -[ -x /usr/share/dsa/weak-ssh-keys-check ] && /usr/share/dsa/weak-ssh-keys-check -s /var/cache/dsa/nagios/weak-ssh-keys - -[ -x /usr/sbin/dsa-update-apt-status ] && /usr/sbin/dsa-update-apt-status & -- 2.20.1