- IPv6 always compiled in (drop IPV6 option) - megatec and megatec_usb drivers replaced by blazer_ser and blazer_usb. - liebertgxt2 renamed to liebert-esp2 - s/PREFIX/LOCALBASE/ for gd includes/libs (grrr!) - add OPTIONal bash completion PR: 152866 [1], 157925 [2], Submitted by: John Bayly <freebsd.ports@tipstrade.net> [1], lev@ [2]
40 lines
764 B
Bash
40 lines
764 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
# PROVIDE: nut_upsmon
|
|
# REQUIRE: NETWORKING nut
|
|
# BEFORE: LOGIN
|
|
# KEYWORD: shutdown
|
|
|
|
# Define these nut_upsmon* variables in one of these files:
|
|
# /etc/rc.conf
|
|
# /etc/rc.conf.local
|
|
# /etc/rc.conf.d/nut_upsmon
|
|
#
|
|
# DO NOT CHANGE THESE DEFAULT VALUES HERE
|
|
#
|
|
nut_upsmon_enable=${nut_upsmon_enable-"NO"}
|
|
nut_upsmon_prefix=${nut_upsmon_prefix-"%%PREFIX%%"}
|
|
|
|
. /etc/rc.subr
|
|
|
|
name="nut_upsmon"
|
|
rcvar=`set_rcvar`
|
|
|
|
load_rc_config $name
|
|
|
|
required_dirs="%%STATEDIR%%"
|
|
required_files="${nut_upsmon_prefix}/etc/nut/upsmon.conf"
|
|
command="${nut_upsmon_prefix}/sbin/upsmon"
|
|
pidfile="%%STATEDIR%%/upsmon.pid"
|
|
nut_upsmon_flags=${nut_upsmon_flags-"localhost"}
|
|
|
|
extra_commands=reload
|
|
reload()
|
|
{
|
|
${command} -c reload
|
|
}
|
|
|
|
run_rc_command "$1"
|