fix: systemd gitlab service

This commit is contained in:
2024-05-13 17:56:37 +00:00
parent 6405fbc5cb
commit 761fc5a953

View File

@@ -10,6 +10,7 @@ After=syslog.target network.target
StartLimitInterval=5 StartLimitInterval=5
StartLimitBurst=10 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 %} 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 Restart=always
RestartSec=120 RestartSec=120
#EnvironmentFile=-/etc/sysconfig/gitlab-runner #EnvironmentFile=-/etc/sysconfig/gitlab-runner