openbsd-ports/net/net-snmp/pkg/netsnmptrapd.rc
sthen d148dd7700 Set pexp="${daemon}.*" for net-snmp; avoids a long delay at boot if the
user has set a command-line arguments containing '+' (not totally uncommon).
Otherwise rc_check() now waits for pexp to match, which fails due to
the + being handled as part of a regular expression.
2016-01-07 12:35:53 +00:00

13 lines
196 B
Bash

#!/bin/sh
#
# $OpenBSD: netsnmptrapd.rc,v 1.3 2016/01/07 12:35:53 sthen Exp $
daemon="${TRUEPREFIX}/sbin/snmptrapd"
daemon_flags="-u _netsnmp"
. /etc/rc.d/rc.subr
pexp="${daemon}.*"
rc_cmd $1