aboutsummaryrefslogtreecommitdiff
path: root/mail/sympa
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2015-05-03 07:33:40 +0000
committerJan Beich <jbeich@FreeBSD.org>2015-05-03 07:33:40 +0000
commit46e782c2732fe628e1c3d0e40b1a357df25bcc86 (patch)
treee683e68a9e8f359dd9927011d69faeaefb87d3b2 /mail/sympa
parent605fcdb8acb5ebf65295ec410d49e4320d4768ec (diff)
downloadports-46e782c2732fe628e1c3d0e40b1a357df25bcc86.tar.gz
ports-46e782c2732fe628e1c3d0e40b1a357df25bcc86.zip
Notes
Diffstat (limited to 'mail/sympa')
-rw-r--r--mail/sympa/Makefile1
-rw-r--r--mail/sympa/files/sympa.in8
2 files changed, 5 insertions, 4 deletions
diff --git a/mail/sympa/Makefile b/mail/sympa/Makefile
index fea6ba3e943e..d527a8612390 100644
--- a/mail/sympa/Makefile
+++ b/mail/sympa/Makefile
@@ -3,6 +3,7 @@
PORTNAME= sympa
PORTVERSION= 6.1.24
+PORTREVISION= 1
CATEGORIES= mail
MASTER_SITES= http://www.sympa.org/distribution/ \
http://www.sympa.org/distribution/old/
diff --git a/mail/sympa/files/sympa.in b/mail/sympa/files/sympa.in
index 1b89654788ef..c2d0d77fd90e 100644
--- a/mail/sympa/files/sympa.in
+++ b/mail/sympa/files/sympa.in
@@ -51,7 +51,7 @@ sub_status()
if [ -f /var/run/sympa/$1.pid ] ; then
pid=`head -1 /var/run/sympa/$1.pid | tr -s ' ' '|'`
if [ "$pid" != "" ] ; then
- running=`ps -A | egrep "$pid"`
+ running=`ps -axw | grep "^[[:space:]]*$pid[[:space:]]"`
if [ "$running" != "" ]; then
echo "$1 (pid(s) $pid) is active..."
return 0
@@ -115,7 +115,7 @@ sub_stop()
if [ "$pids" != "" ]; then
for pid in $pids; do
killcount=0
- running=`ps -A | grep "^[[:space:]]*$pid[[:space:]].*$1\\.pl"`
+ running=`ps -axw | grep "^[[:space:]]*$pid[[:space:]].*$1\\.pl"`
while [ "$running" != "" ]; do
if [ $killcount -gt 10 ]; then
echo 'failure'
@@ -123,13 +123,13 @@ sub_stop()
fi
kill -TERM $pid >/dev/null 2>&1
- running=`ps -A | grep "^[[:space:]]*$pid[[:space:]].*$1\\.pl"`
+ running=`ps -axw | grep "^[[:space:]]*$pid[[:space:]].*$1\\.pl"`
if [ "$running" = "" ]; then
runcount=`expr $runcount + 1`
break
fi
sleep 2
- running=`ps -A | grep "^[[:space:]]*$pid[[:space:]].*$1\\.pl"`
+ running=`ps -axw | grep "^[[:space:]]*$pid[[:space:]].*$1\\.pl"`
if [ "$running" = "" ]; then
runcount=`expr $runcount + 1`
break