From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1MOT10-00049Z-4U for garchives@archives.gentoo.org; Wed, 08 Jul 2009 09:00:34 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 47A85E0330; Wed, 8 Jul 2009 09:00:33 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 2A94EE0330 for ; Wed, 8 Jul 2009 09:00:33 +0000 (UTC) Received: from stork.gentoo.org (stork.gentoo.org [64.127.104.133]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id CFF3966157 for ; Wed, 8 Jul 2009 09:00:32 +0000 (UTC) Received: from scarabeus by stork.gentoo.org with local (Exim 4.69) (envelope-from ) id 1MOT0y-0000Ba-Cj for gentoo-commits@lists.gentoo.org; Wed, 08 Jul 2009 09:00:32 +0000 From: "Tomas Chvatal (scarabeus)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, scarabeus@gentoo.org Subject: [gentoo-commits] gentoo-x86 commit in sci-misc/boinc/files: boinc.init X-VCS-Repository: gentoo-x86 X-VCS-Files: boinc.init X-VCS-Directories: sci-misc/boinc/files X-VCS-Committer: scarabeus X-VCS-Committer-Name: Tomas Chvatal Content-Type: text/plain; charset=utf8 Message-Id: Sender: Tomas Chvatal Date: Wed, 08 Jul 2009 09:00:32 +0000 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: ce0f2e17-29a3-4e2c-9abd-76eb17364c9a X-Archives-Hash: 412a3004d6287acac6e24a71416bc40f 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/fil= es/boinc.init?rev=3D1.15&view=3Dmarkup plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-misc/boinc/fil= es/boinc.init?rev=3D1.15&content-type=3Dtext/plain diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-misc/boinc/fil= es/boinc.init?r1=3D1.14&r2=3D1.15 Index: boinc.init =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 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 =20 opts=3D"${opts} attach" +PIDFILE=3D/var/run/boinc.pid =20 depend() { # we can use dns and net, but we can also in most cases live without th= em @@ -73,6 +74,8 @@ =20 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 $? } =20