diff options
| author | Michael Scheidell <scheidell@FreeBSD.org> | 2011-12-28 14:26:17 +0000 |
|---|---|---|
| committer | Michael Scheidell <scheidell@FreeBSD.org> | 2011-12-28 14:26:17 +0000 |
| commit | 72da00e6253d70710c84e3def3f7fc0878956a6a (patch) | |
| tree | 015d7e76f5a5b29ba7476f2d92f3f35923c4da6f /mail/mimedefang/files/patch-examples__init-script.in | |
| parent | - Switch to giflib since it is more featureful. (diff) | |
- Force rc_script to wait on stop to prevent race condition on stop/start combo [1]
- Private email from Daniel O'Connor <doconnor at gsoft dot com dot au>
PR: ports/163564 [1]
Submitted by: m.tsatsenko@gmail.com
Approved by: m.tsatsenko@gmail.com (maintainer), gabor (mentor, implicit)
Diffstat (limited to 'mail/mimedefang/files/patch-examples__init-script.in')
| -rw-r--r-- | mail/mimedefang/files/patch-examples__init-script.in | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/mail/mimedefang/files/patch-examples__init-script.in b/mail/mimedefang/files/patch-examples__init-script.in index b8b1b6550d25..54e34a2a1763 100644 --- a/mail/mimedefang/files/patch-examples__init-script.in +++ b/mail/mimedefang/files/patch-examples__init-script.in @@ -1,5 +1,5 @@ ---- examples/init-script.in.orig 2009-05-04 17:34:32.000000000 +0200 -+++ examples/init-script.in 2010-08-13 10:34:05.000000000 +0200 +--- examples/init-script.in.orig 2010-06-30 01:50:32.000000000 +0400 ++++ examples/init-script.in 2011-12-14 00:40:09.284988761 +0400 @@ -39,6 +39,12 @@ # The socket used by mimedefang to communicate with sendmail # SOCKET=$SPOOLDIR/mimedefang.sock @@ -27,7 +27,7 @@ # If you want to use the "notification" facility, set the appropriate port. # See the mimedefang-notify man page for details. -@@ -189,6 +195,7 @@ +@@ -193,6 +199,7 @@ procname=$PROGDIR/$prog-multiplexor start_cmd="start_it" stop_cmd="stop_it" @@ -35,7 +35,7 @@ sig_reload="INT" reread_cmd="reread_it" # provide both "reload", the FreeBSD default, with a direct signal to -@@ -199,6 +206,8 @@ +@@ -203,6 +210,8 @@ # Make sure required vars are set SOCKET=${SOCKET:=$SPOOLDIR/$prog.sock} MX_SOCKET=${MX_SOCKET:=$SPOOLDIR/$prog-multiplexor.sock} @@ -44,7 +44,7 @@ start_it() { if test -r $PID ; then -@@ -281,6 +290,29 @@ +@@ -286,6 +295,29 @@ kill `cat $MXPID` return 1 fi @@ -74,7 +74,16 @@ return 0 } -@@ -368,6 +400,12 @@ +@@ -321,7 +353,7 @@ + rm -f $MX_SOCKET > /dev/null 2>&1 + rm -f $SOCKET > /dev/null 2>&1 + +- if [ "$1" = "wait" ] ; then ++ if [ 1 ] ; then + printf "Waiting for daemons to exit." + WAITPID="" + test -f $PID && WAITPID=`cat $PID` +@@ -373,6 +405,12 @@ fi } |
