summaryrefslogblamecommitdiff
path: root/sysutils/upsmon/files/upsmon.sh
blob: 31031407a2c03e2f9a86801d63dc540a8bd2f379 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11

         


                                                                                 
 




                                                                                            
                                             







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