]> git.ipfire.org Git - people/ms/dma.git/commitdiff
Install a cron job that runs the dma queue every five minutes.
authorPeter Pentchev <roam@ringlet.net>
Tue, 10 Mar 2009 10:27:49 +0000 (10:27 +0000)
committerPeter Pentchev <roam@ringlet.net>
Tue, 10 Mar 2009 10:27:49 +0000 (10:27 +0000)
changelog
dma.cron.d [new file with mode: 0644]
rules

index d791d9ef0c166689760767060ba68c28efc7efe3..751bf1d30cfad7944a0d933250252c046b9817c0 100644 (file)
--- a/changelog
+++ b/changelog
@@ -2,7 +2,6 @@ dma (0.0.2009.02.11-1~1) unstable; urgency=low
 
   * Initial release (Closes: #511410)
   * TODO:
-    - crontab an invocation of "dma -q";
     - use debconf.
 
  -- Peter Pentchev <roam@ringlet.net>  Mon, 09 Mar 2009 16:14:23 +0200
diff --git a/dma.cron.d b/dma.cron.d
new file mode 100644 (file)
index 0000000..a3df66f
--- /dev/null
@@ -0,0 +1,3 @@
+# Flush the dma mail transfer agent's queue every five minutes.
+#
+*/5 *  * * *   root    [ -x /usr/sbin/dma ] && /usr/sbin/dma -q1
diff --git a/rules b/rules
index ae4caa23ed02a95a1ceea36254bac6f97c180164..b8ad7a3886d40131edc8cba0df8864859f4e8755 100755 (executable)
--- a/rules
+++ b/rules
@@ -69,7 +69,7 @@ binary-arch: build install
 #      dh_installmime
 #      dh_python
 #      dh_installinit
-#      dh_installcron
+       dh_installcron
 #      dh_installinfo
        dh_installman
        dh_link usr/sbin/dma usr/sbin/sendmail