public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Neal Gompa <ngompa13@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/buildbot] epel10.2: Update to 2.8.3 (#1776032)
Date: Fri, 09 Oct 2026 14:34:23 GMT [thread overview]
Message-ID: <179155646346.1.9134738786052382112.rpms-buildbot-78029764470c@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/buildbot
Branch : epel10.2
Commit : 78029764470c4b335fb99865328c11810638187c
Author : Neal Gompa <ngompa13@gmail.com>
Date : 2020-08-23T09:25:01-04:00
Stats : +68/-0 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/buildbot/c/78029764470c4b335fb99865328c11810638187c?branch=epel10.2
Log:
Update to 2.8.3 (#1776032)
- Add systemd service template units for masters and workers
---
diff --git a/buildbot-master@.service b/buildbot-master@.service
new file mode 100644
index 0000000..e60d75d
--- /dev/null
+++ b/buildbot-master@.service
@@ -0,0 +1,18 @@
+[Unit]
+Description=Buildbot master %I
+Documentation=man:buildbot(1) https://docs.buildbot.net/
+ConditionDirectoryNotEmpty=/var/lib/buildbot/master/%i
+ConditionFileNotEmpty=/var/lib/buildbot/master/%i/buildbot.tac
+ConditionFileNotEmpty=/var/lib/buildbot/master/%i/master.cfg
+
+[Service]
+Type=simple
+WorkingDirectory=/var/lib/buildbot/master/%i
+PrivateTmp=true
+User=buildbot-master
+Group=buildbot-master
+ExecStart=/usr/bin/buildbot start --nodaemon
+ExecReload=/bin/kill -HUP $MAINPID
+
+[Install]
+WantedBy=multi-user.target
diff --git a/buildbot-worker@.service b/buildbot-worker@.service
new file mode 100644
index 0000000..9484bbe
--- /dev/null
+++ b/buildbot-worker@.service
@@ -0,0 +1,16 @@
+[Unit]
+Description=Buildbot worker %I
+Documentation=man:buildbot-worker(1) https://docs.buildbot.net/
+ConditionDirectoryNotEmpty=/var/lib/buildbot/worker/%i
+ConditionFileNotEmpty=/var/lib/buildbot/worker/%i/buildbot.tac
+
+[Service]
+Type=simple
+WorkingDirectory=/var/lib/buildbot/worker/%i
+PrivateTmp=true
+User=buildbot-worker
+Group=buildbot-worker
+ExecStart=/usr/bin/buildbot-worker start --nodaemon
+
+[Install]
+WantedBy=multi-user.target
diff --git a/buildbot.spec b/buildbot.spec
index a701928..e24ce78 100644
--- a/buildbot.spec
+++ b/buildbot.spec
@@ -25,6 +25,10 @@ Source7: %{pypi_source buildbot-wsgi-dashboards}
# Build-time only component for buildbot
Source8: %{pypi_source buildbot-pkg}
+# Service template units for buildbot instances
+Source10: buildbot-master@.service
+Source11: buildbot-worker@.service
+
BuildArch: noarch
BuildRequires: python3-devel
@@ -68,6 +72,9 @@ BuildRequires: python3dist(sphinx-jinja)
BuildRequires: python3dist(towncrier)
%endif
+# For systemd units
+BuildRequires: systemd-rpm-macros
+
# Turns former package into a metapackage for installing everything
Requires: %{name}-master = %{version}
Requires: %{name}-worker = %{version}
@@ -214,11 +221,31 @@ popd
# Purge windows-only files
rm -vf %{buildroot}%{_bindir}/*windows*
+# Install systemd units
+mkdir -p %{buildroot}%{_unitdir}
+cp -a %{S:10} %{S:11} %{buildroot}%{_unitdir}
+mkdir -p %{buildroot}%{_sharedstatedir}/buildbot/{master,worker}
+
+
%if %{with check}
%check
trial buildbot.test
%endif
+%pre master
+getent group buildbot-master >/dev/null || groupadd -r buildbot-master
+getent passwd buildbot-master >/dev/null || \
+ useradd -r -g buildbot-master -d %{_sharedstatedir}/buildbot/master -s /sbin/nologin \
+ -c "Service account for the Buildbot master" buildbot-master
+exit 0
+
+%pre worker
+getent group buildbot-worker >/dev/null || groupadd -r buildbot-worker
+getent passwd buildbot-worker >/dev/null || \
+ useradd -r -g buildbot-worker -d %{_sharedstatedir}/buildbot/worker -s /sbin/nologin \
+ -c "Service account for the Buildbot worker" buildbot-worker
+exit 0
+
%files
# Empty because metapackage
@@ -229,6 +256,9 @@ trial buildbot.test
%{_mandir}/man1/buildbot.1*
%{python3_sitelib}/buildbot/
%{python3_sitelib}/buildbot-*egg-info/
+%dir %{_sharedstatedir}/buildbot
+%dir %attr(-, buildbot-master, buildbot-master) %{_sharedstatedir}/buildbot/master
+%{_unitdir}/buildbot-master@.service
%files worker
%doc NEWS UPGRADING
@@ -237,6 +267,9 @@ trial buildbot.test
%{_mandir}/man1/buildbot-worker.1*
%{python3_sitelib}/buildbot_worker/
%{python3_sitelib}/buildbot_worker-*egg-info/
+%dir %{_sharedstatedir}/buildbot
+%dir %attr(-, buildbot-worker, buildbot-worker) %{_sharedstatedir}/buildbot/worker
+%{_unitdir}/buildbot-worker@.service
%files www
%license COPYING
@@ -261,6 +294,7 @@ trial buildbot.test
%changelog
* Sun Aug 23 2020 Neal Gompa <ngompa13@gmail.com> - 2.8.3-1
- Update to 2.8.3 (#1776032)
+- Add systemd service template units for masters and workers
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
next reply other threads:[~2026-10-09 14:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-09 14:34 Neal Gompa [this message]
-- strict thread matches above, loose matches on Subject: below --
2026-10-09 14:34 [rpms/buildbot] epel10.2: Update to 2.8.3 (#1776032) Neal Gompa
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179155646346.1.9134738786052382112.rpms-buildbot-78029764470c@fedoraproject.org \
--to=ngompa13@gmail.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox