blob: 2da1511cc1e9c30e62948734dd324d3cda4b97fa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#! /bin/sh
#
# $NetBSD: upslog.sh,v 1.2 2001/11/21 21:38:55 jlam Exp $
#
# PROVIDE: upslog
# REQUIRE: upsd
#
# You will need to set some variables in /etc/rc.conf to start upslog
# properly, e.g.
#
# upslog=YES
# upslog_flags="smartups@localhost /var/log/ups 60"
#
# Please refer to upslog(8) for more information about the arguments to pass
# to upslog.
if [ -e /etc/rc.subr ]
then
. /etc/rc.subr
fi
name="upslog"
rcvar="${name}"
command="@PREFIX@/bin/${name}"
pidfile="/var/run/${name}.pid"
required_files="@CONFDIR@/nut/${name}.conf"
if [ -e /etc/rc.subr ]
then
load_rc_config $name
run_rc_command "$1"
else
@ECHO@ -n " ${name}"
${command} ${upsmon_flags} ${command_args}
fi
|