ports/129411: Fix shutdown script for www/tomcat6
Jonathan Chen
jonc at chen.org.nz
Thu Dec 4 03:00:05 UTC 2008
>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 at 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:
More information about the freebsd-ports-bugs
mailing list