summaryrefslogtreecommitdiffstats
path: root/mail/cyrus-imapd/files/cyrus.sh
diff options
context:
space:
mode:
Diffstat (limited to 'mail/cyrus-imapd/files/cyrus.sh')
-rw-r--r--mail/cyrus-imapd/files/cyrus.sh27
1 files changed, 27 insertions, 0 deletions
diff --git a/mail/cyrus-imapd/files/cyrus.sh b/mail/cyrus-imapd/files/cyrus.sh
new file mode 100644
index 0000000..9248623
--- /dev/null
+++ b/mail/cyrus-imapd/files/cyrus.sh
@@ -0,0 +1,27 @@
+#!/bin/sh
+#
+PREFIX=%%PREFIX%%
+
+case "$1" in
+
+start)
+ if [ -x ${PREFIX}/cyrus/bin/pwcheck ]
+ then
+ ${PREFIX}/cyrus/bin/pwcheck & && echo -n " pwcheck"
+ fi
+ ;;
+
+stop)
+ if [ -r /var/run/pwcheck.pid ]
+ then
+ kill `cat /var/run/pwcheck.pid` && echo -n " pwcheck"
+ fi
+ ;;
+
+*)
+ echo "usage: $0 {start|stop}" 1>&2
+ exit 64
+ ;;
+
+esac
+
OpenPOWER on IntegriCloud