summaryrefslogtreecommitdiff
path: root/systemd-services/buildbot-worker-container.service
diff options
context:
space:
mode:
Diffstat (limited to 'systemd-services/buildbot-worker-container.service')
-rw-r--r--systemd-services/buildbot-worker-container.service13
1 files changed, 13 insertions, 0 deletions
diff --git a/systemd-services/buildbot-worker-container.service b/systemd-services/buildbot-worker-container.service
new file mode 100644
index 0000000..70d57c4
--- /dev/null
+++ b/systemd-services/buildbot-worker-container.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Buildbot worker service for container worker
+AssertPathExists=/home/container-worker/worker
+
+[Service]
+WorkingDirectory=/home/container-worker/
+ExecStart=/usr/bin/buildbot-worker start --nodaemon worker
+ExecReload=/usr/bin/buildbot-worker restart --nodaemon worker
+ExecStop=/usr/bin/buildbot-worker stop worker
+Restart=always
+
+[Install]
+WantedBy=default.target