Gentoo Archives: gentoo-commits

From: "Ali Polatel (hawking)" <hawking@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-util/buildbot/files: buildbot.initd-r1
Date: Tue, 27 May 2008 18:02:52
Message-Id: E1K13VY-0007Zl-9B@stork.gentoo.org
1 hawking 08/05/27 18:02:48
2
3 Added: buildbot.initd-r1
4 Log:
5 Revision bump. Fixed initscript #223853.
6 (Portage version: 2.1.5.2)
7
8 Revision Changes Path
9 1.1 dev-util/buildbot/files/buildbot.initd-r1
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/buildbot/files/buildbot.initd-r1?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/buildbot/files/buildbot.initd-r1?rev=1.1&content-type=text/plain
13
14 Index: buildbot.initd-r1
15 ===================================================================
16 #!/sbin/runscript
17 # Copyright 1999-2006 Gentoo Foundation
18 # Distributed under the terms of the GNU General Public License v2
19 # $Header: /var/cvsroot/gentoo-x86/dev-util/buildbot/files/buildbot.initd-r1,v 1.1 2008/05/27 18:02:47 hawking Exp $
20
21 depend() {
22 need net
23 }
24
25 checkconfig() {
26 if [ -z "${BASEDIR}" ]; then
27 eerror "BASEDIR not set"
28 return 1
29 fi
30 if [ -z "${USERNAME}" ]; then
31 eerror "USERNAME not set"
32 return 1
33 fi
34 if [ ! -d "${BASEDIR}" ]; then
35 eerror "${BASEDIR} is not a directory"
36 return 1
37 fi
38 if [ ! -e "${BASEDIR}/buildbot.tac" ]; then
39 eerror "${BASEDIR} does not contain buildbot.tac"
40 return 1
41 fi
42 }
43
44 start() {
45 checkconfig || return 1
46 ebegin "Starting @buildbot@ in ${BASEDIR}"
47 # We set HOME here to make something valid show up in the env of child
48 # processes spawned by the buildslave.
49 start-stop-daemon --start -c "${USERNAME}" --quiet \
50 --env HOME="${BASEDIR}" \
51 --exec /usr/bin/python -- /usr/bin/twistd \
52 --no_save \
53 --logfile="${BASEDIR}/twistd.log" \
54 --pidfile="${BASEDIR}/@buildbot@.pid" \
55 --python="${BASEDIR}/buildbot.tac"
56 eend $?
57 }
58
59 stop() {
60 ebegin "Stopping @buildbot@ in ${BASEDIR}"
61 start-stop-daemon --stop --quiet --pidfile "${BASEDIR}/@buildbot@.pid"
62 eend $?
63 }
64
65
66
67 --
68 gentoo-commits@l.g.o mailing list