fix service not starting properly
Some checks failed
Deploy Containers / Prepare (push) Failing after 3s

This commit is contained in:
2025-07-29 21:26:57 -04:00
parent c8cceee3a9
commit 4a44efb0a8
3 changed files with 29 additions and 5 deletions

View File

@@ -4,13 +4,13 @@ Documentation=https://gitea.com/gitea/act_runner
After=docker.service
[Service]
ExecStart={{ data_dir }}/gitea/act_runner daemon --instance {{ GITEA_INSTANCE_URL }} --token {{ GITEA_RUNNER_REGISTRATION_TOKEN }} --name {{ GITEA_RUNNER_NAME }} --labels {{ GITEA_RUNNER_LABELS }}
ExecStart={{ data_dir }}/gitea/act_runner daemon --config={{ data_dir }}/gitea/config.yml
ExecReload=/bin/kill -s HUP $MAINPID
WorkingDirectory={{ data_dir }}/gitea
TimeoutSec=0
RestartSec=10
Restart=always
User=act_runner
User=alex
[Install]
WantedBy=multi-user.target

View File

@@ -0,0 +1,16 @@
log:
level: info
runner:
file: .runner
capacity: 1
timeout: 3h
shutdown_timeout: 0s
insecure: false
fetch_timeout: 5s
fetch_interval: 2s
labels:
- "runner:host"
host:
workdir_parent: "{{ data_dir }}/gitea/job"