openbsd-ports/sysutils/apcupsd/pkg/apcupsd.rc
sthen c033eddb06 simplify rc_pre(); this uses rm -f which returns a successful exit code
even if the file doesn't exist, so no need to explicitly test for its
presence. from rpe, ok ajacoutot@
2012-08-27 13:39:59 +00:00

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