aboutsummaryrefslogtreecommitdiff
path: root/mail/exact/files
diff options
context:
space:
mode:
authorWill Andrews <will@FreeBSD.org>2003-06-03 02:15:01 +0000
committerWill Andrews <will@FreeBSD.org>2003-06-03 02:15:01 +0000
commit7260defd050fb814d1020f9134fdd3f8aad7b24c (patch)
tree3baef48c7b0fbad293b402524ea4221987dd26d8 /mail/exact/files
parent5f958f3c18470cd5e7d590484aa08dc9c918724d (diff)
downloadports-7260defd050fb814d1020f9134fdd3f8aad7b24c.tar.gz
ports-7260defd050fb814d1020f9134fdd3f8aad7b24c.zip
Notes
Diffstat (limited to 'mail/exact/files')
-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