summaryrefslogtreecommitdiff
path: root/sysutils/blimitd
diff options
context:
space:
mode:
authorChristian Weisgerber <naddy@FreeBSD.org>2002-08-02 10:55:12 +0000
committerChristian Weisgerber <naddy@FreeBSD.org>2002-08-02 10:55:12 +0000
commit13a7d7db16dd4cc86d382c7132099abf09104772 (patch)
treeb89ee58d2c2c4e5e1f624b2a5e709bfeab05aa42 /sysutils/blimitd
parentupgrade to 1.0.1 (diff)
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 we're here, 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> PR: 41252 Submitted by: Andrew Stevenson <andrew@ugh.net.au>
Notes
Notes: svn path=/head/; revision=63866
Diffstat (limited to 'sysutils/blimitd')
-rw-r--r--sysutils/blimitd/Makefile1
-rw-r--r--sysutils/blimitd/files/blimitd.sh6
2 files changed, 5 insertions, 2 deletions
diff --git a/sysutils/blimitd/Makefile b/sysutils/blimitd/Makefile
index 840a947171dc..65f9efdd4ce9 100644
--- a/sysutils/blimitd/Makefile
+++ b/sysutils/blimitd/Makefile
@@ -7,6 +7,7 @@
PORTNAME= blimitd
PORTVERSION= 0.1
+PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= ftp://ftp.ugh.net.au/pub/unix/blimitd/ \
ftp://ftp.megamirror.com/pub/ugh/unix/blimitd/ \
diff --git a/sysutils/blimitd/files/blimitd.sh b/sysutils/blimitd/files/blimitd.sh
index 4d71f635d1ce..b7228d96c8b1 100644
--- a/sysutils/blimitd/files/blimitd.sh
+++ b/sysutils/blimitd/files/blimitd.sh
@@ -22,8 +22,10 @@ status)
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