summaryrefslogtreecommitdiff
path: root/mail/sympa/files/patch-src-etc-script-sympa
diff options
context:
space:
mode:
authorCheng-Lung Sung <clsung@FreeBSD.org>2004-10-25 13:09:20 +0000
committerCheng-Lung Sung <clsung@FreeBSD.org>2004-10-25 13:09:20 +0000
commitfdc8193123e3b04e575adc234167d83545e5894d (patch)
tree790aab98f7103f2b357490b1ac2d6e8e5083ac5c /mail/sympa/files/patch-src-etc-script-sympa
parentSet maintainer to ports@FreeBSD.org (diff)
- Update to 4.1.2
PR: ports/73101 Submitted by: clsung Approved by: maintainer (Autrijus Tang), co-mentor (vanilla)
Notes
Notes: svn path=/head/; revision=120145
Diffstat (limited to 'mail/sympa/files/patch-src-etc-script-sympa')
-rw-r--r--mail/sympa/files/patch-src-etc-script-sympa15
1 files changed, 8 insertions, 7 deletions
diff --git a/mail/sympa/files/patch-src-etc-script-sympa b/mail/sympa/files/patch-src-etc-script-sympa
index 03737312d103..0191f4fa831c 100644
--- a/mail/sympa/files/patch-src-etc-script-sympa
+++ b/mail/sympa/files/patch-src-etc-script-sympa
@@ -29,26 +29,27 @@
if [ "$running" != "" ]; then
echo "$1 (pid $pid) is active..."
return 0
-@@ -88,8 +94,8 @@
+@@ -88,7 +94,7 @@
# startparam=""
# fi
- if [ ${OSTYPE} = "IRIX" -o ${OSTYPE} = "SunOS" ]; then
-- $sympadir/$1.pl $startparam && echo "success" || echo "failure"
-+ if [ ${OSTYPE} = "IRIX" -o ${OSTYPE} = "FreeBSD" ]; then
-+ su -m sympa -c "$sympadir/$1.pl $startparam" && echo "success" || echo "failure"
++ if [ ${OSTYPE} = "IRIX" -o ${OSTYPE} = "SunOS" -o ${OSTYPE} = "FreeBSD" ]; then
+ $sympadir/$1.pl $startparam && echo "success" || echo "failure"
else
$sympadir/$1.pl $startparam && success || failure
- fi
-@@ -144,7 +150,7 @@
+@@ -144,9 +150,9 @@
if [ -f --PIDDIR--/$1.pid ]; then
echo $echo_opt "Stopping module $1.pl: "
pid=`head -1 --PIDDIR--/$1.pid`
- running=`ps -A | grep "$pid"`
+ running=`ps -ax | grep perl | grep "$pid"`
if [ "$running" != "" ]; then
- if [ ${OSTYPE} = "IRIX" ]; then
+- if [ ${OSTYPE} = "IRIX" ]; then
++ if [ ${OSTYPE} = "IRIX" -o ${OSTYPE} = "FreeBSD" ]; then
kill -TERM $pid && echo "success" || echo "failure"
+ elif [ ${OSTYPE} = "SunOS" ]; then
+ echo "Stopping module $1.pl: terminated"
@@ -180,13 +186,13 @@
# See how we were called.
case "$1" in