Gentoo Archives: gentoo-commits

From: "Lars Wendler (polynomial-c)" <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in mail-filter/dcc/files: dcc.initd-1.3.140
Date: Tue, 01 Jan 2013 18:04:01
Message-Id: 20130101180336.D7BA82171E@flycatcher.gentoo.org
1 polynomial-c 13/01/01 18:03:36
2
3 Modified: dcc.initd-1.3.140
4 Log:
5 Removed bashism in init script (bug #388723)
6
7 (Portage version: 2.2.0_alpha149/cvs/Linux x86_64, signed Manifest commit with key 0x981CA6FC)
8
9 Revision Changes Path
10 1.2 mail-filter/dcc/files/dcc.initd-1.3.140
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-filter/dcc/files/dcc.initd-1.3.140?rev=1.2&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-filter/dcc/files/dcc.initd-1.3.140?rev=1.2&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-filter/dcc/files/dcc.initd-1.3.140?r1=1.1&r2=1.2
15
16 Index: dcc.initd-1.3.140
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/mail-filter/dcc/files/dcc.initd-1.3.140,v
19 retrieving revision 1.1
20 retrieving revision 1.2
21 diff -u -r1.1 -r1.2
22 --- dcc.initd-1.3.140 22 Oct 2011 22:57:48 -0000 1.1
23 +++ dcc.initd-1.3.140 1 Jan 2013 18:03:36 -0000 1.2
24 @@ -1,7 +1,7 @@
25 #!/sbin/runscript
26 -# Copyright 1999-2011 Gentoo Foundation
27 +# Copyright 1999-2013 Gentoo Foundation
28 # Distributed under the terms of the GNU General Public License v2
29 -# $Header: /var/cvsroot/gentoo-x86/mail-filter/dcc/files/dcc.initd-1.3.140,v 1.1 2011/10/22 22:57:48 robbat2 Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/mail-filter/dcc/files/dcc.initd-1.3.140,v 1.2 2013/01/01 18:03:36 polynomial-c Exp $
31
32 depend() {
33 use logger
34 @@ -51,11 +51,13 @@
35 ebegin "Starting dccm"
36 ${DCC_LIBEXEC}/start-dccm >/dev/null 2>&1
37 eend ${?}
38 - for ((dccmtimeout=0 ; dccmtimeout <= 20 ; dccmtimeout++)); do
39 + local dccmtimeout=0
40 + while [ ${dcctimeout} -le 20 ] ; do
41 if [ -S "${DCC_RUNDIR}/dccm" ] || [ -r "${DCC_RUNDIR}/dccm" ]; then
42 break
43 else
44 sleep 1
45 + dcctimeout=$(($dcctimeout + 1))
46 fi
47 done
48 chown ${SOCKET_USER:-milter}:${SOCKET_GROUP:-milter} ${DCC_RUNDIR}/dccm 1>/dev/null 2>&1