Skip site navigation (1)Skip section navigation (2)
Date:      Thu,  4 Dec 2008 15:51:22 +1300 (NZDT)
From:      Jonathan Chen <jonc@chen.org.nz>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/129411: Fix shutdown script for www/tomcat6
Message-ID:  <20081204025122.A00F52841C@chen.org.nz>
Resent-Message-ID: <200812040300.mB4305DW011168@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         129411
>Category:       ports
>Synopsis:       Fix shutdown script for www/tomcat6
>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:   Thu Dec 04 03:00:05 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Jonathan Chen
>Release:        FreeBSD 7.1-PRERELEASE amd64
>Organization:
>Environment:
System: FreeBSD osiris.chen.org.nz 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #0: Sat Nov 1 22:32:19 NZDT 2008 root@osiris.chen.org.nz:/usr/obj/usr/src/sys/OSIRIS amd64
>Description:

The rc.d script for www/tomcat6 does not perform stop requests.

>How-To-Repeat:

	# /usr/local/etc/rc.d/tomcat6 start
	# /usr/local/etc/rc.d/tomcat6 stop
	tomcat60 not running? (check /var/run/tomcat60.pid).

>Fix:

--- /usr/ports/www/tomcat6/files/tomcat6.sh.in	2007-10-01 11:04:02.000000000 +1300
+++ ./files/tomcat6.sh.in	2008-12-04 15:44:49.000000000 +1300
@@ -109,7 +109,7 @@
 if [ -f $pidfile ]; then
   read rc_pid junk < $pidfile
   if [ ! -z "$rc_pid" ]; then
-    procname=`ps -o ucomm= $rc_pid`
+    procname=`ps -o command= $rc_pid | cut -f1 -d' '`
   fi
 fi
 if [ -z "$procname" ]; then
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081204025122.A00F52841C>