c033eddb06
even if the file doesn't exist, so no need to explicitly test for its presence. from rpe, ok ajacoutot@
17 lines
236 B
Bash
17 lines
236 B
Bash
#!/bin/sh
|
|
#
|
|
# $OpenBSD: apcupsd.rc,v 1.3 2012/08/27 13:39:59 sthen Exp $
|
|
|
|
daemon="${TRUEPREFIX}/sbin/apcupsd"
|
|
daemon_flags="--kill-on-powerfail"
|
|
|
|
. /etc/rc.d/rc.subr
|
|
|
|
rc_reload=NO
|
|
|
|
rc_pre() {
|
|
rm -f ${SYSCONFDIR}/powerfail
|
|
}
|
|
|
|
rc_cmd $1
|