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.
13 lines
196 B
Bash
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
|