Adjust the pexp regex in the rc script, it needs a trailing .* to match

the process arguments when they're modified after a reload.
This commit is contained in:
sthen 2015-10-20 20:59:40 +00:00
parent 5c3f199355
commit 1bffdd63b8
2 changed files with 4 additions and 3 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.33 2015/10/20 13:54:13 sthen Exp $
# $OpenBSD: Makefile,v 1.34 2015/10/20 20:59:40 sthen Exp $
BROKEN-hppa = needs 64-bit atomic ops; __sync_add_and_fetch_4
SHARED_ONLY = Yes
@ -8,6 +8,7 @@ COMMENT-mysql = MySQL support for icinga2
COMMENT-pgsql = PostgreSQL support for icinga2
V = 2.3.11
REVISION-main = 0
EPOCH = 0
GH_ACCOUNT = Icinga
GH_PROJECT = icinga2

View File

@ -1,13 +1,13 @@
#!/bin/sh
#
# $OpenBSD: icinga2.rc,v 1.6 2015/10/20 13:54:13 sthen Exp $
# $OpenBSD: icinga2.rc,v 1.7 2015/10/20 20:59:40 sthen Exp $
daemon="${TRUEPREFIX}/sbin/icinga2 daemon -d"
daemon_user="_icinga"
. /etc/rc.d/rc.subr
pexp="${daemon}${daemon_flags:+ ${daemon_flags}}"
pexp="${daemon}${daemon_flags:+ ${daemon_flags}}.*"
rc_pre() {
install -d -o ${daemon_user} /var/run/icinga2{,/cmd}