diff options
author | naddy <naddy@FreeBSD.org> | 2002-08-02 10:55:12 +0000 |
---|---|---|
committer | naddy <naddy@FreeBSD.org> | 2002-08-02 10:55:12 +0000 |
commit | b612c6e4e1a82307f36de0bac0c111fbc446370e (patch) | |
tree | 6e189d31b901c4a5ffa09d5a7d6d667a4ee8c78f /sysutils/blimitd/files | |
parent | e27af28309cc52c0bf4d991791321d482935f238 (diff) | |
download | FreeBSD-ports-b612c6e4e1a82307f36de0bac0c111fbc446370e.zip FreeBSD-ports-b612c6e4e1a82307f36de0bac0c111fbc446370e.tar.gz |
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>
Diffstat (limited to 'sysutils/blimitd/files')
-rw-r--r-- | sysutils/blimitd/files/blimitd.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sysutils/blimitd/files/blimitd.sh b/sysutils/blimitd/files/blimitd.sh index 4d71f63..b7228d9 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 |