You've already forked gitlab-runner
Initial commit
This commit is contained in:
18
templates/gitlab-runner.service.j2
Normal file
18
templates/gitlab-runner.service.j2
Normal file
@@ -0,0 +1,18 @@
|
||||
{{ ansible_managed | comment }}
|
||||
|
||||
[Unit]
|
||||
Description=GitLab Runner
|
||||
ConditionFileIsExecutable={{ gitlab_runner_binary_path }}
|
||||
|
||||
After=syslog.target network.target
|
||||
|
||||
[Service]
|
||||
StartLimitInterval=5
|
||||
StartLimitBurst=10
|
||||
ExecStart={{ gitlab_runner_binary_path }} "run" "--working-directory" "{{ gitlab_runner_working_directory }}" "--config" "{{ gitlab_runner_config_path }}" "--service" "gitlab-runner"{% if not gitlab_runner_user == "root" %} "--user" "{{ gitlab_runner_user }}" {% endif %}
|
||||
Restart=always
|
||||
RestartSec=120
|
||||
#EnvironmentFile=-/etc/sysconfig/gitlab-runner
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user