summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirkjan Ochtman <djc@gentoo.org>2012-09-30 17:24:35 +0000
committerDirkjan Ochtman <djc@gentoo.org>2012-09-30 17:24:35 +0000
commit21704a77a8dbc7d06e7640e0a04b5a3fe769b865 (patch)
tree22181aa7502e3765ac010e88a4d88b51cedcb512 /dev-util/buildbot-slave/files/buildslave.initd
parentalpha/ia64/sparc stable wrt #435114 (diff)
downloadgentoo-2-21704a77a8dbc7d06e7640e0a04b5a3fe769b865.tar.gz
gentoo-2-21704a77a8dbc7d06e7640e0a04b5a3fe769b865.tar.bz2
gentoo-2-21704a77a8dbc7d06e7640e0a04b5a3fe769b865.zip
Let s-s-d know about custom pidfile (bug 397759, thanks to jbergstroem).
(Portage version: 2.1.11.23/cvs/Linux x86_64)
Diffstat (limited to 'dev-util/buildbot-slave/files/buildslave.initd')
-rw-r--r--dev-util/buildbot-slave/files/buildslave.initd3
1 files changed, 2 insertions, 1 deletions
diff --git a/dev-util/buildbot-slave/files/buildslave.initd b/dev-util/buildbot-slave/files/buildslave.initd
index f14c14c4457c..17e22abdc7cb 100644
--- a/dev-util/buildbot-slave/files/buildslave.initd
+++ b/dev-util/buildbot-slave/files/buildslave.initd
@@ -1,5 +1,5 @@
#!/sbin/runscript
-# Copyright 1999-2011 Gentoo Foundation
+# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
depend() {
@@ -31,6 +31,7 @@ start() {
# We set HOME here to make something valid show up in the env of child
# processes spawned by the buildslave.
start-stop-daemon --start -u "${USERNAME}" \
+ --pidfile "${BASEDIR}/buildslave.pid" \
--env HOME="${BASEDIR}" \
--exec /usr/bin/python -- /usr/bin/twistd \
--no_save \