diff options
author | 2016-08-09 15:46:55 -0700 | |
---|---|---|
committer | 2016-08-09 16:47:21 -0700 | |
commit | 6876c4d431ee294c53d563d6542f582da9722900 (patch) | |
tree | a73ef4dbbf01429b2cb10b71310dcd92a5e5b3af /dev-util/buildbot/files | |
parent | dev-python/future: Add ~x86 keyword (diff) | |
download | gentoo-6876c4d431ee294c53d563d6542f582da9722900.tar.gz gentoo-6876c4d431ee294c53d563d6542f582da9722900.tar.bz2 gentoo-6876c4d431ee294c53d563d6542f582da9722900.zip |
dev-util/buildbot: Version bump, update live ebuild
This version is a major change from previous version.
Diffstat (limited to 'dev-util/buildbot/files')
-rw-r--r-- | dev-util/buildbot/files/buildbot9..service | 14 | ||||
-rw-r--r-- | dev-util/buildbot/files/buildmaster.confd.9 | 10 | ||||
-rw-r--r-- | dev-util/buildbot/files/buildmaster.initd.9 | 54 |
3 files changed, 78 insertions, 0 deletions
diff --git a/dev-util/buildbot/files/buildbot9..service b/dev-util/buildbot/files/buildbot9..service new file mode 100644 index 000000000000..371d6e086de9 --- /dev/null +++ b/dev-util/buildbot/files/buildbot9..service @@ -0,0 +1,14 @@ +[Unit] +Description=buildbot master daemon +After=local-fs.target network.target + +[Service] +Type=forking +User=buildbot +WorkingDirectory=/var/lib/buildmaster +ExecStartPre=/usr/bin/buildbot checkconfig /var/lib/buildmaster +ExecStart=/usr/bin/buildbot start /var/lib/buildmaster +ExecStop=/usr/bin/buildbot stop /var/lib/buildmaster + +[Install] +WantedBy=multi-user.target diff --git a/dev-util/buildbot/files/buildmaster.confd.9 b/dev-util/buildbot/files/buildmaster.confd.9 new file mode 100644 index 000000000000..e489d66f9d4b --- /dev/null +++ b/dev-util/buildbot/files/buildmaster.confd.9 @@ -0,0 +1,10 @@ + +# Path to the build master's basedir. +BASEDIR=/var/lib/buildmaster + +# User account for the buildmaster. +# The basedir should be owned by this user. +USERNAME=buildbot + +# Extra options to pass to twistd. +TWISTD_OPTS="" diff --git a/dev-util/buildbot/files/buildmaster.initd.9 b/dev-util/buildbot/files/buildmaster.initd.9 new file mode 100644 index 000000000000..d146bff6c926 --- /dev/null +++ b/dev-util/buildbot/files/buildmaster.initd.9 @@ -0,0 +1,54 @@ +#!/sbin/openrc-run +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +extra_started_commands="reload" + +depend() { + need net +} + +checkconfig() { + if [ -z "${BASEDIR}" ]; then + eerror "BASEDIR not set" + return 1 + fi + if [ -z "${USERNAME}" ]; then + eerror "USERNAME not set" + return 1 + fi + if [ ! -d "${BASEDIR}" ]; then + eerror "${BASEDIR} is not a directory" + return 1 + fi + if [ ! -e "${BASEDIR}/buildbot.tac" ]; then + eerror "${BASEDIR} does not contain buildbot.tac" + return 1 + fi +} + +start() { + checkconfig || return 1 + ebegin "Starting buildmaster in ${BASEDIR}" + start-stop-daemon --start -u "${USERNAME}" \ + --pidfile "${BASEDIR}/buildmaster.pid" \ + --exec /usr/bin/twistd -- \ + --no_save \ + --logfile="${BASEDIR}/twistd.log" \ + --pidfile="${BASEDIR}/buildmaster.pid" \ + --python="${BASEDIR}/buildbot.tac" + eend $? +} + +stop() { + ebegin "Stopping buildmaster in ${BASEDIR}" + start-stop-daemon --stop --pidfile "${BASEDIR}/buildmaster.pid" + eend $? +} + +reload() { + ebegin "Reconfiguring buildmaster in ${BASEDIR}" + start-stop-daemon --signal HUP --pidfile \ + "${BASEDIR}"/buildmaster.pid + eend $? +} |