diff options
Diffstat (limited to 'dev-util/gitlab-runner/files/gitlab-runner.service')
-rw-r--r-- | dev-util/gitlab-runner/files/gitlab-runner.service | 18 |
1 files changed, 18 insertions, 0 deletions
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..047de5cc7363 --- /dev/null +++ b/dev-util/gitlab-runner/files/gitlab-runner.service @@ -0,0 +1,18 @@ +[Unit] +Description=GitLab Runner service +After=syslog.target 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 +StandardOutput=syslog +StandardError=syslog +SyslogIdentifier=gitlab-runner +ExecReload=/bin/kill -HUP $MAINPID + +[Install] +WantedBy=multi-user.target |