From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Aug 21 08:00:38 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D425216A601 for ; Mon, 21 Aug 2006 08:00:38 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2F8DA43D5C for ; Mon, 21 Aug 2006 08:00:37 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k7L80aSA092273 for ; Mon, 21 Aug 2006 08:00:36 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k7L80a9b092272; Mon, 21 Aug 2006 08:00:36 GMT (envelope-from gnats) Resent-Date: Mon, 21 Aug 2006 08:00:36 GMT Resent-Message-Id: <200608210800.k7L80a9b092272@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Radim Kolar Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E9F6816A4DA for ; Mon, 21 Aug 2006 07:56:20 +0000 (UTC) (envelope-from hsn@netmag.cz) Received: from smtp-out4.iol.cz (smtp-out4.iol.cz [194.228.2.92]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7514143D45 for ; Mon, 21 Aug 2006 07:56:20 +0000 (GMT) (envelope-from hsn@netmag.cz) Received: from antivir4.iol.cz (avir4 [192.168.30.209]) by smtp-out4.iol.cz (Postfix) with ESMTP id CEF861F8F57; Mon, 21 Aug 2006 09:56:13 +0200 (CEST) Received: from localhost (antivir4.iol.cz [127.0.0.1]) by antivir4.iol.cz (Postfix) with ESMTP id C20DD240045; Mon, 21 Aug 2006 09:56:13 +0200 (CEST) Received: from smtp-out4.iol.cz (smtp-out-4.iplanet.iol.cz [192.168.30.31]) by antivir4.iol.cz (Postfix) with ESMTP id 30AD724003B; Mon, 21 Aug 2006 09:56:13 +0200 (CEST) Received: from sanatana.dharma (96.219.broadband3.iol.cz [85.70.219.96]) by smtp-out4.iol.cz (Postfix) with ESMTP id 82E2122AF04; Mon, 21 Aug 2006 09:55:56 +0200 (CEST) Received: from hsn@localhost by sanatana.dharma (Exim 4.63_0 FreeBSD) id 1GF4dX-000F7B-81 ; Mon, 21 Aug 2006 09:55:55 +0200 Message-Id: Date: Mon, 21 Aug 2006 09:55:55 +0200 From: Radim Kolar To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: liukang@cn.freebsd.org, hsn@localhost.iol.cz Subject: ports/102339: [PATCH] tomcat55: stop in rc.d script broken X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Radim Kolar List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Aug 2006 08:00:39 -0000 >Number: 102339 >Category: ports >Synopsis: [PATCH] tomcat55: stop in rc.d script broken >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Aug 21 08:00:35 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Radim Kolar >Release: FreeBSD 6.1-STABLE i386 >Organization: >Environment: System: FreeBSD sanatana.dharma 6.1-STABLE FreeBSD 6.1-STABLE #2: Tue Jun 27 10:46:03 CEST 2006 root@sanatana.dharma:/usr/obj/usr/src/sys/UP i386 versions: diablo-jdk-1.5.0.06.00 Java Development Kit 1.5.0_06.00 pkg tomcat55 5.5.17 2006-07-03 >Description: rc.d script provided with tomcat is broken at least on 6.X branch (i have no 5 or 4 machines for test) because commands status and stop can't find running tomcat55 process. pid in tomcat55.pid file is correct but this script checks also for name of command, but this name is not set right, full path is needed. >How-To-Repeat: /usr/local/etc/rc.d/tomcat55 start /usr/local/etc/rc.d/tomcat55 status (shows no tomcat55 is running) /usr/local/etc/rc.d/tomcat55 stop (same error here) >Fix: sanatana# diff -Naur tomcat55.orig tomcat55 --- tomcat55.orig Mon Aug 21 09:01:35 2006 +++ tomcat55 Mon Aug 21 09:41:20 2006 @@ -109,7 +109,7 @@ if [ -f $pidfile ]; then read rc_pid junk < $pidfile if [ ! -z "$rc_pid" ]; then - procname=`ps -o comm= $rc_pid` + procname=`ps -o command= $rc_pid | cut -f 1 -d " "` fi fi >Release-Note: >Audit-Trail: >Unformatted: