misc/82430: error with find "[procname]" in function check_process and check_pidfile of rc.subr

Pavel Volkov pol at iib.ru
Mon Jun 20 06:20:21 GMT 2005


>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 at 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]
 


More information about the freebsd-bugs mailing list