summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Seifert <mseifert@error-reports.org>2016-03-10 19:48:49 +0100
committerPatrice Clement <monsieurp@gentoo.org>2016-03-30 12:03:13 +0000
commit0462b33e75b5061c6671edc5fabf89b53dd1e09f (patch)
tree9dc6c2fa76bdc5d41adb9e7dbd84b8acead6abd8 /dev-util/buildbot/files
parentdev-util/buildbot: Bumped to 0.8.12-r2. Removed 0.8.12-r1. (diff)
downloadgentoo-0462b33e75b5061c6671edc5fabf89b53dd1e09f.tar.gz
gentoo-0462b33e75b5061c6671edc5fabf89b53dd1e09f.tar.bz2
gentoo-0462b33e75b5061c6671edc5fabf89b53dd1e09f.zip
dev-util/buildbot: Added support for multiple service instances when using systemd.
This commit adds support for starting multiple buildmaster instances using systemd. A service configuration file allows to specify the filesystem location of the buildmaster instances. A systemd target allows to start up or shut down all buildmaster instances at once. Gentoo-Bug: https://bugs.gentoo.org/570666 Closes: https://github.com/gentoo/gentoo/pull/1027 Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
Diffstat (limited to 'dev-util/buildbot/files')
-rw-r--r--dev-util/buildbot/files/buildmaster.target5
-rw-r--r--dev-util/buildbot/files/buildmaster_at.service16
-rw-r--r--dev-util/buildbot/files/buildmaster_at.service.conf5
3 files changed, 26 insertions, 0 deletions
diff --git a/dev-util/buildbot/files/buildmaster.target b/dev-util/buildbot/files/buildmaster.target
new file mode 100644
index 000000000000..2bf1a361e6b0
--- /dev/null
+++ b/dev-util/buildbot/files/buildmaster.target
@@ -0,0 +1,5 @@
+[Unit]
+Description=Buildbot target that allows to start or stop all buildmaster@*.service instances
+
+[Install]
+WantedBy=multi-user.target
diff --git a/dev-util/buildbot/files/buildmaster_at.service b/dev-util/buildbot/files/buildmaster_at.service
new file mode 100644
index 000000000000..88f9f5712002
--- /dev/null
+++ b/dev-util/buildbot/files/buildmaster_at.service
@@ -0,0 +1,16 @@
+[Unit]
+Description=buildbot master daemon
+After=local-fs.target network.target
+PartOf=buildmaster.target
+
+[Service]
+Environment=BASEDIR=/var/lib/buildmaster
+Type=forking
+User=buildbot
+ExecStartPre=/usr/bin/buildbot checkconfig ${BASEDIR}/%i
+ExecStart=/usr/bin/buildbot start ${BASEDIR}/%i
+ExecStop=/usr/bin/buildbot stop ${BASEDIR}/%i
+
+[Install]
+WantedBy=buildmaster.target
+
diff --git a/dev-util/buildbot/files/buildmaster_at.service.conf b/dev-util/buildbot/files/buildmaster_at.service.conf
new file mode 100644
index 000000000000..baf1ae74ec08
--- /dev/null
+++ b/dev-util/buildbot/files/buildmaster_at.service.conf
@@ -0,0 +1,5 @@
+# Uncomment the following lines to configure the base directory for all buildmaster instances.
+
+#[Service]
+#Environment=BASEDIR=/var/lib/buildmaster
+