freebsd-ports/sysutils/upsmon/files/upsmon.sh
Edwin Groothuis f3350272f6 Misspelling of ports/sysutils/upsmon/files/upsmon.sh
PR:		ports/52053
Submitted by:	TSUMAI Yasuyuki <ral@ta-ko.jp>
Approved by:	Erwin Lansing <erwin@lansing.dk>
2003-05-12 07:52:18 +00:00

20 lines
357 B
Bash

#!/bin/sh
case $1 in
start)
# see !!PREFIX!!/share/doc/upsmon/INSTALL for command line option details
if [ -x !!PREFIX!!/sbin/upsmond ]; then
!!PREFIX!!/sbin/upsmond -p /dev/cuaa0 2>&1 > /dev/null && echo -n ' upsmond'
fi
;;
stop)
killall upsmond && echo -n ' upsmond'
;;
*)
echo "Usage: `basename $0` {start|stop}" >&2
exit 64
;;
esac
exit 0