Date: Mon, 20 Jun 2005 06:19:23 GMT From: Pavel Volkov <pol@iib.ru> To: freebsd-gnats-submit@FreeBSD.org Subject: misc/82430: error with find "[procname]" in function check_process and check_pidfile of rc.subr Message-ID: <200506200619.j5K6JNj2072629@www.freebsd.org> Resent-Message-ID: <200506200620.j5K6KKxp084962@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 82430 >Category: misc >Synopsis: error with find "[procname]" in function check_process and check_pidfile of rc.subr >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jun 20 06:20:19 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Pavel Volkov >Release: 5.3-RELEASE >Organization: IIB >Environment: FreeBSD test.iib.ru 5.3-RELEASE-p5 FreeBSD 5.3-RELEASE-p5 #1: Thu Jan 20 17:26:18 MSK 2005 root@test.iib.ru:/usr/obj/usr/src/sys/SMP i386 >Description: Not working rc.d script in /usr/ports/security/clamav ports. /usr/local/etc/rc.d/clamav-milter.sh [stop|status] talk my "Process not found". But: >How-To-Repeat: #!/bin/sh . /etc/rc.subr echo -n "Where pid my vmdaemon: " check_process "vmdaemon" echo echo -n "But: " ps -xao pid,command | grep vmdaemon | grep -v grep >Fix: --- /etc/rc.subr.orig Mon Jun 20 10:10:13 2005 +++ /etc/rc.subr Mon Jun 20 10:10:57 2005 @@ -267,7 +267,7 @@ _procnamebn=${_procname##*/} _fp_args='_arg0 _argv' _fp_match='case "$_arg0" in - $_procname|$_procnamebn|${_procnamebn}:|"(${_procnamebn})")' + $_procname|$_procnamebn|${_procnamebn}:|"(${_procnamebn})"|"[${_procnamebn}]")' fi _proccheck=' >Release-Note: >Audit-Trail: >Unformatted: >ps -p 44109 -o command COMMAND [clamav-milter]
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200506200619.j5K6JNj2072629>