aboutsummaryrefslogtreecommitdiffstats
path: root/mail/exact/files/exact.sh
diff options
context:
space:
mode:
Diffstat (limited to 'mail/exact/files/exact.sh')
-rw-r--r--mail/exact/files/exact.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/mail/exact/files/exact.sh b/mail/exact/files/exact.sh
new file mode 100644
index 000000000000..8386b6b6396d
--- /dev/null
+++ b/mail/exact/files/exact.sh
@@ -0,0 +1,23 @@
+#!/bin/sh
+PIDFILE=%%EXACTDIR%%/exact.pid
+
+case "$1" in
+ start)
+ if [ -x %%PREFIX%%/sbin/exact ]; then
+ %%PREFIX%%/sbin/exact && echo -n ' exact'
+ fi
+ ;;
+ stop)
+ if [ -f ${PIDFILE} ]; then
+ /bin/kill `cat ${PIDFILE}` > /dev/null 2>&1 && echo -n 'exact'
+ else
+ echo "exact isn't running"
+ fi
+ ;;
+ *)
+ echo ""
+ echo "Usage: `basename $0` { start | stop }"
+ echo ""
+ exit 64
+ ;;
+esac