diff options
Diffstat (limited to 'dev-util/gitlab-runner/files')
| -rw-r--r-- | dev-util/gitlab-runner/files/gitlab-runner.confd | 4 | ||||
| -rw-r--r-- | dev-util/gitlab-runner/files/gitlab-runner.initd | 15 | ||||
| -rw-r--r-- | dev-util/gitlab-runner/files/gitlab-runner.service | 17 | ||||
| -rw-r--r-- | dev-util/gitlab-runner/files/gitlab-runner.tmpfile | 1 |
4 files changed, 37 insertions, 0 deletions
diff --git a/dev-util/gitlab-runner/files/gitlab-runner.confd b/dev-util/gitlab-runner/files/gitlab-runner.confd new file mode 100644 index 000000000000..d6fa9e1b1b73 --- /dev/null +++ b/dev-util/gitlab-runner/files/gitlab-runner.confd @@ -0,0 +1,4 @@ +# Config file for /etc/init.d/gitlab-runner + +# extra options (run gitlab-runner -h for a list of supported options) +RUNNER_OPTS="--config /etc/gitlab-runner/config.toml --working-directory /var/lib/gitlab-runner --service gitlab-runner" diff --git a/dev-util/gitlab-runner/files/gitlab-runner.initd b/dev-util/gitlab-runner/files/gitlab-runner.initd new file mode 100644 index 000000000000..70f6a02edfd1 --- /dev/null +++ b/dev-util/gitlab-runner/files/gitlab-runner.initd @@ -0,0 +1,15 @@ +#!/sbin/openrc-run +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +command="/usr/bin/gitlab-runner" +command_args="run ${RUNNER_OPTS}" +command_background="yes" +command_user="${USER:-runner}:${GROUP:-gitlab}" +description="GitLab Runner" +name="Gitlab Runner" +pidfile="/run/gitlab-runner/${RC_SVCNAME}.pid" + +depend() { + need net +} 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..8a6879a47f71 --- /dev/null +++ b/dev-util/gitlab-runner/files/gitlab-runner.service @@ -0,0 +1,17 @@ +[Unit] +Description=GitLab Runner +After=syslog.target network.target +ConditionFileIsExecutable=/usr/bin/gitlab-runner + +[Service] +StartLimitInterval=5 +StartLimitBurst=10 +ExecStart=/usr/bin/gitlab-runner "run" "--working-directory" "/var/lib/gitlab-runner" "--config" "/etc/gitlab-runner/config.toml" "--service" "gitlab-runner" "--user" "runner" +Restart=always +RestartSec=120 +StandardOutput=syslog +StandardError=syslog +SyslogIdentifier=gitlab-runner + +[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..342d71594ea8 --- /dev/null +++ b/dev-util/gitlab-runner/files/gitlab-runner.tmpfile @@ -0,0 +1 @@ +d /run/gitlab-runner 0755 runner gitlab |
