diff options
author | James Meyer <james.meyer@operamail.com> | 2011-12-07 19:21:09 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2011-12-07 19:21:09 (GMT) |
commit | 31241d8ab04062f0fae61441cbd6c8de3dc1b660 (patch) | |
tree | 7c34efb8e386147cb2614c79dac46b14fbb150c2 /abs/core/dcron/dcron.install | |
parent | db5e198de1e368a2202460089f9d00a52947d4f6 (diff) | |
download | linhes_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.
Diffstat (limited to 'abs/core/dcron/dcron.install')
-rw-r--r-- | abs/core/dcron/dcron.install | 7 |
1 files changed, 7 insertions, 0 deletions
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: |