mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-13 03:03:15 +00:00
7260defd05
Authentication. PR: 52757 Submitted by: mwest@uct.ac.za
24 lines
398 B
Bash
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
|