dma(8): Better integration with our periodic scripts.
authorSascha Wildner <saw@online.de>
Sun, 19 Oct 2014 11:37:04 +0000 (13:37 +0200)
committerSascha Wildner <saw@online.de>
Sun, 19 Oct 2014 11:37:04 +0000 (13:37 +0200)
commit00db07ff9ee195fe00b334303afc45096186e2b2
treea2d7bbee7da7a9f33e0fe750a95893c4c32241f6
parentfecf3c91766c75b8f50fca491bb09171a99386ff
dma(8): Better integration with our periodic scripts.

* Make dma(8) accept the -Ac option when run as 'mailq'. Also make it
  run as 'hoststat' and 'purgestat' (does nothing in this case).

* Adjust the 440.status-mailq daily periodic script to also check for
  "Mail queue is empty", which is dma(8)'s corresponding text.

Note: We really should be suppressing the checking of the submit queue
      automatically if mailer.conf is set up for dma(8) but I'm not
      sure yet what's the best way.

Reported and tested by Max Herrgard <herrgard@gmail.com>.
etc/periodic/daily/440.status-mailq
libexec/dma/dma.c