Gentoo Archives: gentoo-commits

From: "Tomas Chvatal (scarabeus)" <scarabeus@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-misc/boinc/files: boinc.init
Date: Sun, 01 Feb 2009 23:06:46
Message-Id: E1LTlOm-00038Z-7e@stork.gentoo.org
1 scarabeus 09/02/01 23:06:44
2
3 Modified: boinc.init
4 Log:
5 Fix initscript for baselayout-1. This time for real :]. Per bug #257113. Big thanks to Andrea Conti <alyf@××××.net>
6 (Portage version: 2.2_rc23/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.9 sci-misc/boinc/files/boinc.init
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-misc/boinc/files/boinc.init?rev=1.9&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-misc/boinc/files/boinc.init?rev=1.9&content-type=text/plain
13 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-misc/boinc/files/boinc.init?r1=1.8&r2=1.9
14
15 Index: boinc.init
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo-x86/sci-misc/boinc/files/boinc.init,v
18 retrieving revision 1.8
19 retrieving revision 1.9
20 diff -u -r1.8 -r1.9
21 --- boinc.init 1 Feb 2009 14:33:37 -0000 1.8
22 +++ boinc.init 1 Feb 2009 23:06:44 -0000 1.9
23 @@ -66,15 +66,15 @@
24
25 # check for baselayout version
26 if [[ "`start-stop-daemon --version |awk -F' ' '{print $2}'`" = "(OpenRC)" ]]; then
27 - PARAMS="--stdout ${LOGFILE} --stderr ${LOGFILE} -- ${ARGS}"
28 + PARAMS="--background --stdout ${LOGFILE} --stderr ${LOGFILE} -- ${ARGS}"
29 else
30 - PARAMS="-- ${ARGS} &> ${LOGFILE}"
31 + PARAMS="-- ${ARGS} >> ${LOGFILE} 2>&1 &"
32 fi
33
34 - ${CHRT} start-stop-daemon \
35 + eval ${CHRT} start-stop-daemon \
36 --quiet --start --chdir ${RUNTIMEDIR} \
37 --exec ${BOINCBIN} --chuid ${USER}:${GROUP} \
38 - --background --nicelevel ${NICELEVEL} \
39 + --nicelevel ${NICELEVEL} \
40 ${PARAMS}
41
42 RESULT=$?