Date: Mon, 2 Jun 2003 15:25:29 +0200 (CEST) From: Frank Altpeter <frank@altpeter.de> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/52860: rc script doesn't find running instance Message-ID: <200306021325.h52DPT3q053987@broadnet-mediascape.de> Resent-Message-ID: <200306021350.h52DoFOT094712@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200306021325.h52DPT3q053987>