tweak pexp to match only the main smokeping process, not subprocesses or the cgi

This commit is contained in:
sthen 2014-11-07 23:56:23 +00:00
parent c619518f20
commit 1b5b933de7
2 changed files with 4 additions and 4 deletions

View File

@ -1,9 +1,9 @@
# $OpenBSD: Makefile,v 1.40 2014/11/06 09:46:28 sthen Exp $
# $OpenBSD: Makefile,v 1.41 2014/11/07 23:56:23 sthen Exp $
COMMENT= latency logging and graphing system
DISTNAME= smokeping-2.6.11
REVISION= 1
REVISION= 2
CATEGORIES= net

View File

@ -1,13 +1,13 @@
#!/bin/sh
#
# $OpenBSD: smokeping.rc,v 1.2 2014/11/05 15:42:09 sthen Exp $
# $OpenBSD: smokeping.rc,v 1.3 2014/11/07 23:56:23 sthen Exp $
daemon="${TRUEPREFIX}/bin/smokeping"
daemon_user="_smokeping"
. /etc/rc.d/rc.subr
pexp="perl: ${daemon}"
pexp="/usr/bin/perl ${daemon}${daemon_flags:+ ${daemon_flags}}\$"
rc_pre() {
install -d -o _smokeping /var/run/smokeping