[libvirt-jenkins-ci PATCH v2 3/6] guests: templates: Introduce a gitlab-runner systemd service template

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Erik Skultety <eskultet@xxxxxxxxxx>
---
 .../update/templates/gitlab-runner.service.j2      | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 guests/playbooks/update/templates/gitlab-runner.service.j2

diff --git a/guests/playbooks/update/templates/gitlab-runner.service.j2 b/guests/playbooks/update/templates/gitlab-runner.service.j2
new file mode 100644
index 0000000..5d494b2
--- /dev/null
+++ b/guests/playbooks/update/templates/gitlab-runner.service.j2
@@ -0,0 +1,14 @@
+[Unit]
+Description=GitLab Runner
+After=network.target
+ConditionFileIsExecutable=/home/gitlab/bin/gitlab-runner
+
+[Service]
+User=gitlab
+WorkingDirectory=/home/gitlab
+ExecStart=/home/gitlab/bin/gitlab-runner run --config /home/gitlab/.gitlab-runner/config.toml
+Restart=always
+
+[Install]
+WantedBy=multi-user.target
+
-- 
2.25.1





[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux