From 31241d8ab04062f0fae61441cbd6c8de3dc1b660 Mon Sep 17 00:00:00 2001 From: James Meyer Date: Wed, 7 Dec 2011 13:21:09 -0600 Subject: dcron: add a new dir to run cron jobs every 10 minutes. Scripts placed in this dir should not in .sh if they are then run-parts will ignore it. --- abs/core/dcron/PKGBUILD | 2 +- abs/core/dcron/__changelog | 8 ++++++++ abs/core/dcron/crond.logrotate | 5 ----- abs/core/dcron/dcron.install | 7 +++++++ 4 files changed, 16 insertions(+), 6 deletions(-) create mode 100644 abs/core/dcron/__changelog delete mode 100644 abs/core/dcron/crond.logrotate diff --git a/abs/core/dcron/PKGBUILD b/abs/core/dcron/PKGBUILD index 61999c9..0003bf7 100644 --- a/abs/core/dcron/PKGBUILD +++ b/abs/core/dcron/PKGBUILD @@ -2,7 +2,7 @@ pkgname=dcron pkgver=4.4 -pkgrel=2 +pkgrel=3 pkgdesc="dillon's lightweight cron daemon" arch=(i686 x86_64) license=('GPL') diff --git a/abs/core/dcron/__changelog b/abs/core/dcron/__changelog new file mode 100644 index 0000000..e6464b6 --- /dev/null +++ b/abs/core/dcron/__changelog @@ -0,0 +1,8 @@ +Added an every ten minutes dir + job + + grep -q cron.tenminutes /var/spool/cron/root + if [ $? = 1 ] + then + echo "*/10 * * * * /usr/sbin/run-cron /etc/cron.tenminutes" >> /var/spool/cron/root + fi + diff --git a/abs/core/dcron/crond.logrotate b/abs/core/dcron/crond.logrotate deleted file mode 100644 index 38299d6..0000000 --- a/abs/core/dcron/crond.logrotate +++ /dev/null @@ -1,5 +0,0 @@ -/var/log/crond { - sharedscripts - copytruncate - missingok -} diff --git a/abs/core/dcron/dcron.install b/abs/core/dcron/dcron.install index ba08b3a..3e4f126 100644 --- a/abs/core/dcron/dcron.install +++ b/abs/core/dcron/dcron.install @@ -5,6 +5,13 @@ post_upgrade() { then echo "Restart crond, since you're upgrading to the dcron 4.x series." fi + grep -q cron.tenminutes /var/spool/cron/root + if [ $? = 1 ] + then + echo "0,10,20,30,40,50 * * * * /usr/sbin/run-cron /etc/cron.tenminutes" >> /var/spool/cron/root + fi + + } # vim:set ts=2 sw=2 et: -- cgit v0.12