diff options
Diffstat (limited to 'sysutils/nut22/files/nut.sh.sample')
-rw-r--r-- | sysutils/nut22/files/nut.sh.sample | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/sysutils/nut22/files/nut.sh.sample b/sysutils/nut22/files/nut.sh.sample deleted file mode 100644 index 85638b71c5af..000000000000 --- a/sysutils/nut22/files/nut.sh.sample +++ /dev/null @@ -1,49 +0,0 @@ -#!/bin/sh -# -# $FreeBSD$ -# - -# PROVIDE: nut -# REQUIRE: NETWORKING -# BEFORE: LOGIN -# KEYWORD: shutdown - -# Define these nut_* variables in one of these files: -# /etc/rc.conf -# /etc/rc.conf.local -# /etc/rc.conf.d/nut -# -# DO NOT CHANGE THESE DEFAULT VALUES HERE -# -nut_enable=${nut_enable-"NO"} -nut_prefix=${nut_prefix-"%%PREFIX%%"} -nut_pidfile=${nut_pidfile-"%%STATEDIR%%/nut.pid"} -nut_upslog=${nut_upslog-"/var/log/ups.log"} -nut_upsloginterval=${nut_upsloginterval-"300"} -nut_upslogmail=${nut_upslogmail-"backups@localhost"} - -. %%RC_SUBR%% - -name="nut" -rcvar=`set_rcvar` - -required_dirs="%%STATEDIR%%" -required_files="${nut_prefix}/etc/nut/ups.conf ${nut_prefix}/etc/nut/upsd.conf ${nut_prefix}/etc/nut/upsd.users ${nut_prefix}/etc/nut/upsmon.conf" - -start_postcmd="nut_start" -stop_cmd="nut_stop" - -nut_start() { - ${nut_prefix}/libexec/nut/upsdrvctl start - ${nut_prefix}/sbin/upsd - ${nut_prefix}/sbin/upsmon localhost - ${nut_prefix}/bin/upslog -s ${nut_upslogmail} -l ${nut_upslog} -i ${nut_upsloginterval} -} - -nut_stop() { - /usr/bin/killall upslog upsmon upsd - ${nut_prefix}/libexec/nut/upsdrvctl stop -} - -load_rc_config $name -run_rc_command "$1" |