openbsd-ports/sysutils/nut/pkg/upsd.rc
sthen 8103eadcb9 update to NUT 2.6.2 and add rc.d scripts
- thanks ajacoutot@ for looking over the scripts

- note that there has been some major work on apcsmart; in the event
of problems the old driver is still available as apcsmart-old
2011-09-19 15:59:57 +00:00

20 lines
245 B
Bash

#!/bin/sh
#
# $OpenBSD: upsd.rc,v 1.1 2011/09/19 15:59:57 sthen Exp $
daemon="${TRUEPREFIX}/sbin/upsd"
. /etc/rc.d/rc.subr
upsdrvctl="${TRUEPREFIX}/bin/upsdrvctl"
rc_pre() {
${upsdrvctl} start
}
rc_post() {
${upsdrvctl} stop
}
rc_cmd $1