aboutsummaryrefslogtreecommitdiffstats
path: root/mail/qmail/files/maildir
diff options
context:
space:
mode:
authorlioux <lioux@FreeBSD.org>2001-03-13 13:47:01 +0800
committerlioux <lioux@FreeBSD.org>2001-03-13 13:47:01 +0800
commitc96062184e968a523a636388dc5c1e5bac6b20db (patch)
treed44c075633a0d56ba363e0b4429ef344f7d52dcd /mail/qmail/files/maildir
parentba77438a81cfc693c9eae07bd8c03e41919bf15e (diff)
downloadfreebsd-ports-gnome-c96062184e968a523a636388dc5c1e5bac6b20db.tar.gz
freebsd-ports-gnome-c96062184e968a523a636388dc5c1e5bac6b20db.tar.zst
freebsd-ports-gnome-c96062184e968a523a636388dc5c1e5bac6b20db.zip
Add {start|stop} support to the initialization (rc.d style) scripts.
Also, add a informational message if the user does not use the scripts correctly.
Diffstat (limited to 'mail/qmail/files/maildir')
-rw-r--r--mail/qmail/files/maildir16
1 files changed, 14 insertions, 2 deletions
diff --git a/mail/qmail/files/maildir b/mail/qmail/files/maildir
index 1992e9fd981b..de9c2799a4b9 100644
--- a/mail/qmail/files/maildir
+++ b/mail/qmail/files/maildir
@@ -3,5 +3,17 @@
# Using splogger to send the log through syslog.
# Using qmail-local to deliver messages to Maildir format by default
-exec env - PATH="@PREFIX@/qmail/bin:$PATH" \
-qmail-start ./Maildir/ splogger qmail &
+case "$1" in
+start)
+ exec env - PATH="@PREFIX@/qmail/bin:$PATH" \
+ qmail-start ./Maildir/ splogger qmail&
+ exit 0
+ ;;
+stop)
+ exec killall qmail-send
+ ;;
+*)
+ echo "Usage: `basename $0` {start|stop}" >&2
+ exit 64
+ ;;
+esac