From andrew@ugh.net.au  Thu Aug  1 20:20:57 2002
Return-Path: <andrew@ugh.net.au>
Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 5C98637B400
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  1 Aug 2002 20:20:57 -0700 (PDT)
Received: from starbug.ugh.net.au (starbug.ugh.net.au [203.31.238.37])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 83AFE43E5E
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  1 Aug 2002 20:20:56 -0700 (PDT)
	(envelope-from andrew@ugh.net.au)
Received: by starbug.ugh.net.au (Postfix, from userid 1000)
	id D08AAA80A; Fri,  2 Aug 2002 13:20:51 +1000 (EST)
Message-Id: <20020802032051.D08AAA80A@starbug.ugh.net.au>
Date: Fri,  2 Aug 2002 13:20:51 +1000 (EST)
From: Andrew <andrew@ugh.net.au>
Reply-To: Andrew <andrew@ugh.net.au>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: missign fi in startup script
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         41252
>Category:       ports
>Synopsis:       missign fi in startup script
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug 01 20:30:01 PDT 2002
>Closed-Date:    Fri Aug 02 03:56:13 PDT 2002
>Last-Modified:  Fri Aug 02 03:56:13 PDT 2002
>Originator:     Andrew
>Release:        FreeBSD 4.6-STABLE i386
>Organization:
UgH!
>Environment:
System: FreeBSD starbug.ugh.net.au 4.6-STABLE FreeBSD 4.6-STABLE #0: Wed Jul 17 17:07:15 EST 2002     andrew@starbug.ugh.net.au:/usr/src/sys/compile/STARBUG  i386


	
>Description:

The startup script supportes an argument of status which is just a quick way to
see if the daemon is running. The case when the daemon wasn't apparently
running was missing a "fi". While I'm here I'll fancify the grep a little and
fix the fact that it shows you the script is running as well as the daemon.

Reported by: Jonathan Towne <jontow@twcny.rr.com>

>How-To-Repeat:
	
>Fix:

diff -ruN /usr/ports/sysutils/blimitd/files/blimitd.sh blimitd/files/blimitd.sh
--- /usr/ports/sysutils/blimitd/files/blimitd.sh	Wed Dec 19 13:55:21 2001
+++ blimitd/files/blimitd.sh	Fri Aug  2 12:48:33 2002
@@ -22,8 +22,10 @@
 	if [ -f /var/run/blimitd.pid ]; then
 		ps -uxwwp `cat /var/run/blimitd.pid`
 	else
-		echo 'blimitd may not be running'
-		ps -auxww | grep blimitd | grep -v "($0|grep)"
+		echo 'blimitd may not be running...possible processes below...'
+		echo
+		ps -auxww | egrep -e '^USER|blimitd' | egrep -v "($0|grep)"
+	fi
     ;;
 *)
     echo "usage: `basename $0` {start|stop|status}" >&2
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: naddy 
State-Changed-When: Fri Aug 2 03:55:35 PDT 2002 
State-Changed-Why:  
Committed, thanks!  I also bumped the port revision. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=41252 
>Unformatted:
