summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2011-12-07 19:21:09 (GMT)
committerJames Meyer <james.meyer@operamail.com>2011-12-07 19:21:09 (GMT)
commit31241d8ab04062f0fae61441cbd6c8de3dc1b660 (patch)
tree7c34efb8e386147cb2614c79dac46b14fbb150c2
parentdb5e198de1e368a2202460089f9d00a52947d4f6 (diff)
downloadlinhes_pkgbuild-31241d8ab04062f0fae61441cbd6c8de3dc1b660.zip
linhes_pkgbuild-31241d8ab04062f0fae61441cbd6c8de3dc1b660.tar.gz
linhes_pkgbuild-31241d8ab04062f0fae61441cbd6c8de3dc1b660.tar.bz2
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.
-rw-r--r--abs/core/dcron/PKGBUILD2
-rw-r--r--abs/core/dcron/__changelog8
-rw-r--r--abs/core/dcron/crond.logrotate5
-rw-r--r--abs/core/dcron/dcron.install7
4 files changed, 16 insertions, 6 deletions
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: