#!/bin/sh
#
# $NetBSD: UPSMON,v 1.2 2005/03/22 04:33:57 thorpej Exp $
# $FreeBSD: src/etc/rc.d/upsmon,v 1.2 2005/10/12 13:49:21 schweikh Exp $
#

# PROVIDE: UPS protection
# REQUIRE: network dhclient altqd network1 network2
# KEYWORD: FreeBSD NetBSD

#	This is a dummy dependency, for services which require networking
#	to be operational before starting.

. /etc/rc.subr

name="ups"
#rcvar=`set_rcvar`
pidfile="/var/run/${name}.pid" 
start_cmd="ups_start"
stop_cmd="ups_stop"

ups_start()
{
	/usr/upsmon/upsagent &
	echo 'Starting UPSMON daemon:' 
}


run_rc_command "$1"
