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: Wed, 08 Jul 2009 09:00:32 +0000 [thread overview]
Message-ID: <E1MOT0y-0000Ba-Cj@stork.gentoo.org> (raw)
scarabeus 09/07/08 09:00:32
Modified: boinc.init
Log:
Use pidfile in initscript. Per bug #276271.
(Portage version: 2.2_rc33/cvs/Linux i686)
Revision Changes Path
1.15 sci-misc/boinc/files/boinc.init
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-misc/boinc/files/boinc.init?rev=1.15&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-misc/boinc/files/boinc.init?rev=1.15&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-misc/boinc/files/boinc.init?r1=1.14&r2=1.15
Index: boinc.init
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sci-misc/boinc/files/boinc.init,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- boinc.init 29 May 2009 16:42:46 -0000 1.14
+++ boinc.init 8 Jul 2009 09:00:32 -0000 1.15
@@ -1,6 +1,7 @@
#!/sbin/runscript
opts="${opts} attach"
+PIDFILE=/var/run/boinc.pid
depend() {
# we can use dns and net, but we can also in most cases live without them
@@ -73,6 +74,8 @@
eval ${CHRT} start-stop-daemon \
--quiet --start --chdir ${RUNTIMEDIR} \
+ --pidfile ${PIDFILE} \
+ --make-pidfile \
--exec ${BOINCBIN} --chuid ${USER}:${GROUP} \
--nicelevel ${NICELEVEL} \
${PARAMS}
@@ -116,6 +119,7 @@
stop() {
ebegin "Stopping BOINC"
start-stop-daemon --stop --retry 3 --quiet --exec ${BOINCBIN}
+ rm -f ${PIDFILE}
eend $?
}
next reply other threads:[~2009-07-08 9:00 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-08 9:00 Tomas Chvatal (scarabeus) [this message]
-- strict thread matches above, loose matches on Subject: below --
2011-10-23 18:55 [gentoo-commits] gentoo-x86 commit in sci-misc/boinc/files: boinc.init Lars Wendler (polynomial-c)
2011-09-08 15:56 Tomas Chvatal (scarabeus)
2011-05-23 19:47 Tomas Chvatal (scarabeus)
2011-05-22 9:26 Tomas Chvatal (scarabeus)
2010-07-19 20:34 Tomas Chvatal (scarabeus)
2010-07-15 21:28 Tomas Chvatal (scarabeus)
2010-07-09 16:49 Tomas Chvatal (scarabeus)
2009-11-22 13:38 Tomas Chvatal (scarabeus)
2009-11-10 21:42 Tomas Chvatal (scarabeus)
2009-09-02 21:22 Tomas Chvatal (scarabeus)
2009-07-24 10:58 Tomas Chvatal (scarabeus)
2009-05-29 16:42 Tomas Chvatal (scarabeus)
2009-04-23 16:13 Tomas Chvatal (scarabeus)
2009-04-23 16:00 Tomas Chvatal (scarabeus)
2009-03-11 20:48 Tomas Chvatal (scarabeus)
2009-02-03 14:58 Tomas Chvatal (scarabeus)
2009-02-01 23:06 Tomas Chvatal (scarabeus)
2009-02-01 14:33 Tomas Chvatal (scarabeus)
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=E1MOT0y-0000Ba-Cj@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