aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2010-10-27 17:38:01 +0800
committerbapt <bapt@FreeBSD.org>2010-10-27 17:38:01 +0800
commit6fa22f373a7d8690849e4e7b72b70aba01c5ba7d (patch)
treefde79b03f44813af4eca0b7c839189f214b6db56 /mail
parent9bb58a54100baffe12fb477b6321a4afb2f69335 (diff)
downloadfreebsd-ports-gnome-6fa22f373a7d8690849e4e7b72b70aba01c5ba7d.tar.gz
freebsd-ports-gnome-6fa22f373a7d8690849e4e7b72b70aba01c5ba7d.tar.zst
freebsd-ports-gnome-6fa22f373a7d8690849e4e7b72b70aba01c5ba7d.zip
Add forgotten rc file
Reported by: QAT
Diffstat (limited to 'mail')
-rw-r--r--mail/dma/files/dma_flushq.in32
1 files changed, 32 insertions, 0 deletions
diff --git a/mail/dma/files/dma_flushq.in b/mail/dma/files/dma_flushq.in
new file mode 100644
index 000000000000..e369b83359ff
--- /dev/null
+++ b/mail/dma/files/dma_flushq.in
@@ -0,0 +1,32 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+# PROVIDE: dma mail
+# REQUIRE: LOGIN cleanvar
+# KEYWORD: shutdown
+#
+# Add the following line to /etc/rc.conf to enable dma mailq flushing on
+# startup or before shutdown:
+# dma_flushq_enable (bool): Set it to "YES" to flush mailq on startup
+# or before shutdown
+# Default is "NO".
+#
+
+. /etc/rc.subr
+
+name="dma_flushq"
+rcvar=${name}_enable
+
+load_rc_config ${name}
+
+: ${dma_flushq_enable:="NO"}
+
+start_cmd=${name}
+stop_cmd=${name}
+
+dma_flushq() {
+ %%PREFIX%%/libexec/dma -q
+}
+
+run_rc_command "$1"