1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-13 03:03:15 +00:00
freebsd-ports/mail/exact/files/exact.sh
2003-06-03 02:15:01 +00:00

24 lines
398 B
Bash

#!/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