8103eadcb9
- 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
20 lines
245 B
Bash
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
|