public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Tomas Chvatal (scarabeus)" <scarabeus@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] gentoo-x86 commit in sci-misc/boinc/files: boinc.init
Date: Sun, 01 Feb 2009 14:33:37 +0000	[thread overview]
Message-ID: <E1LTdOD-0005bR-Q0@stork.gentoo.org> (raw)

scarabeus    09/02/01 14:33:37

  Modified:             boinc.init
  Log:
  Update init script so it works with baselayout1 again. Per bug #257113.
  (Portage version: 2.2_rc23/cvs/Linux x86_64)

Revision  Changes    Path
1.8                  sci-misc/boinc/files/boinc.init

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-misc/boinc/files/boinc.init?rev=1.8&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-misc/boinc/files/boinc.init?rev=1.8&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-misc/boinc/files/boinc.init?r1=1.7&r2=1.8

Index: boinc.init
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sci-misc/boinc/files/boinc.init,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- boinc.init	31 Jan 2009 15:19:36 -0000	1.7
+++ boinc.init	1 Feb 2009 14:33:37 -0000	1.8
@@ -64,11 +64,18 @@
 	# sys-apps/util-linux
 	CHRT="/usr/bin/chrt ${SCHED_PARAM}"
 
+	# check for baselayout version
+	if [[ "`start-stop-daemon --version |awk -F' ' '{print $2}'`" = "(OpenRC)" ]]; then
+		PARAMS="--stdout ${LOGFILE} --stderr ${LOGFILE} -- ${ARGS}"
+	else
+		PARAMS="-- ${ARGS} &> ${LOGFILE}"
+	fi
+
 	${CHRT} start-stop-daemon \
 		--quiet --start --chdir ${RUNTIMEDIR} \
 		--exec ${BOINCBIN} --chuid ${USER}:${GROUP} \
-		--background --stdout ${LOGFILE} --stderr ${LOGFILE} \
-		--nicelevel ${NICELEVEL} -- ${ARGS}
+		--background --nicelevel ${NICELEVEL} \
+		${PARAMS}
 
 	RESULT=$?
 






             reply	other threads:[~2009-02-01 14:33 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-01 14:33 Tomas Chvatal (scarabeus) [this message]
  -- strict thread matches above, loose matches on Subject: below --
2009-02-01 23:06 [gentoo-commits] gentoo-x86 commit in sci-misc/boinc/files: boinc.init Tomas Chvatal (scarabeus)
2009-02-03 14:58 Tomas Chvatal (scarabeus)
2009-03-11 20:48 Tomas Chvatal (scarabeus)
2009-04-23 16:00 Tomas Chvatal (scarabeus)
2009-04-23 16:13 Tomas Chvatal (scarabeus)
2009-05-29 16:42 Tomas Chvatal (scarabeus)
2009-07-08  9:00 Tomas Chvatal (scarabeus)
2009-07-24 10:58 Tomas Chvatal (scarabeus)
2009-09-02 21:22 Tomas Chvatal (scarabeus)
2009-11-10 21:42 Tomas Chvatal (scarabeus)
2009-11-22 13:38 Tomas Chvatal (scarabeus)
2010-07-09 16:49 Tomas Chvatal (scarabeus)
2010-07-15 21:28 Tomas Chvatal (scarabeus)
2010-07-19 20:34 Tomas Chvatal (scarabeus)
2011-05-22  9:26 Tomas Chvatal (scarabeus)
2011-05-23 19:47 Tomas Chvatal (scarabeus)
2011-09-08 15:56 Tomas Chvatal (scarabeus)
2011-10-23 18:55 Lars Wendler (polynomial-c)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1LTdOD-0005bR-Q0@stork.gentoo.org \
    --to=scarabeus@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox