diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
| commit | b590c8d7572b727d565cc0b8ff660d43569845de (patch) | |
| tree | 06f7a4102ea4e845df8b66660f252920d52952f9 /dev-util/gitlab-runner/files | |
| parent | 24f9cbfc4c34fdb6a6e03311674414e881ceab47 (diff) | |
| download | baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.gz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.xz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.zip | |
Adding metadata
Diffstat (limited to 'dev-util/gitlab-runner/files')
4 files changed, 50 insertions, 0 deletions
diff --git a/dev-util/gitlab-runner/files/gitlab-runner-18.confd b/dev-util/gitlab-runner/files/gitlab-runner-18.confd new file mode 100644 index 000000000000..e320100b3926 --- /dev/null +++ b/dev-util/gitlab-runner/files/gitlab-runner-18.confd @@ -0,0 +1,5 @@ +# config file for /etc/init.d/gitlab-runner +# run /usr/bin/gitlab-runner -h to see available options +# --config, --user and --working-directory are set by the +# service script, so do not add them here. +# RUNNER_OPTS="" diff --git a/dev-util/gitlab-runner/files/gitlab-runner-18.initd b/dev-util/gitlab-runner/files/gitlab-runner-18.initd new file mode 100644 index 000000000000..13b1cb2c3703 --- /dev/null +++ b/dev-util/gitlab-runner/files/gitlab-runner-18.initd @@ -0,0 +1,28 @@ +#!/sbin/openrc-run +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +command="/usr/bin/gitlab-runner" +command_args="run + --config /etc/gitlab-runner/config.toml + --working-directory /var/lib/gitlab-runner + --user gitlab-runner + --syslog + ${RUNNER_OPTS}" +command_background=true +extra_started_commands="reload" +name="GitLab Runner" +pidfile="/run/${RC_SVCNAME}.pid" +retry="QUIT/60/TERM/60" +required_files="${runner_config}" + +depend() { + need localmount + after net.lo loopback +} + +reload() { + ebegin "Reloading ${name} configuration" + start-stop-daemon --signal HUP --pidfile "${pidfile}" + eend $? "Failed to reload ${NAME} configuration" +} diff --git a/dev-util/gitlab-runner/files/gitlab-runner.service b/dev-util/gitlab-runner/files/gitlab-runner.service new file mode 100644 index 000000000000..8f7ba2ad1fb6 --- /dev/null +++ b/dev-util/gitlab-runner/files/gitlab-runner.service @@ -0,0 +1,16 @@ +[Unit] +Description=GitLab Runner service +After=network.target +ConditionFileIsExecutable=/usr/bin/gitlab-runner + +[Service] +StartLimitInterval=5 +StartLimitBurst=10 +ExecStart=/usr/bin/gitlab-runner run -c /etc/gitlab-runner/config.toml -u gitlab-runner -d /var/lib/gitlab-runner --syslog +Restart=always +RestartSec=120 +SyslogIdentifier=gitlab-runner +ExecReload=/bin/kill -HUP $MAINPID + +[Install] +WantedBy=multi-user.target diff --git a/dev-util/gitlab-runner/files/gitlab-runner.tmpfile b/dev-util/gitlab-runner/files/gitlab-runner.tmpfile new file mode 100644 index 000000000000..40453089f869 --- /dev/null +++ b/dev-util/gitlab-runner/files/gitlab-runner.tmpfile @@ -0,0 +1 @@ +d /run/gitlab-runner 0755 gitlab-runner gitlab-runner |
