ports/sysutils/openupsd/files/openupsd.sh
Kirill Ponomarev f895406643 Update to 0.3.1
Tidy up RC scripts

PR:		ports/70858
Submitted by:	maintainer
2004-08-25 09:14:06 +00:00

23 lines
361 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: openupsd
# REQUIRE: LOGIN
# KEYWORD: FreeBSD shutdown
openupsd_enable=${openupsd_enable:-"NO"}
. %%RC_SUBR%%
name="openupsd"
rcvar=`set_rcvar`
pidfile=/var/run/${name}.pid
required_files=%%PREFIX%%/etc/${name}.conf
command=%%PREFIX%%/sbin/openupsd
command_args="-p ${pidfile}"
load_rc_config $name
run_rc_command "$1"