ports/52860: rc script doesn't find running instance

Frank Altpeter frank at altpeter.de
Mon Jun 2 13:50:16 UTC 2003


>Number:         52860
>Category:       ports
>Synopsis:       rc script doesn't find running instance
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun 02 06:50:14 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Frank Altpeter
>Release:        FreeBSD 5.1-BETA i386
>Organization:
>Environment:
System: FreeBSD bsd-fa 5.1-BETA FreeBSD 5.1-BETA #7: Fri May 16 14:32:47 CEST 2003 root at bsd-fa:/usr/obj/usr/src/sys/kernconf.bsd-fa i386


	
>Description:
	The rc script setiathome.sh has an incorrect ps invocation,
	which prevents the script to find running instances of
	setiathome. Not really a problem, but should be fixed.

>How-To-Repeat:
	sh /usr/local/etc/rc.d/setiathome.sh start
>Fix:

Apply this, since FreeBSD doesn't seem to know ps parameter 'comm', but
parameter 'ucomm' works:

*** setiathome.sh.orig  Mon Jun  2 15:21:46 2003
--- setiathome.sh       Mon Jun  2 12:54:42 2003
***************
*** 97,103 ****
                        exit 72
                fi
        done
!       if ps axo comm | egrep ${program_file}; then
                logger -sp ${syslog_facility} -t ${program_file} \
                "unable to start: ${program_file} is already running."
                exit 72
--- 97,103 ----
                        exit 72
                fi
        done
!       if ps axo ucomm | egrep ${program_file}; then
                logger -sp ${syslog_facility} -t ${program_file} \
                "unable to start: ${program_file} is already running."
                exit 72

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list