Skip site navigation (1)Skip section navigation (2)
Date:      Fri,  2 Aug 2002 13:20:51 +1000 (EST)
From:      Andrew <andrew@ugh.net.au>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/41252: missign fi in startup script
Message-ID:  <20020802032051.D08AAA80A@starbug.ugh.net.au>

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

>Number:         41252
>Category:       ports
>Synopsis:       missign fi in startup script
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug 01 20:30:01 PDT 2002
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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