Add more ordering and some start back-off to allow gitea to be ready
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
# gitea-act-runner-rpm
|
||||
|
||||
Spec file to copr build the gitea act_runner binary
|
||||
Spec file to copr build the gitea act_runner binary
|
||||
from https://gitea.com/gitea/act_runner.git
|
||||
@@ -12,7 +12,7 @@ TimeoutSec=0
|
||||
RestartSec=2
|
||||
Restart=always
|
||||
StartLimitBurst=3
|
||||
StartLimitInterval=60
|
||||
StartLimitInterval=60s
|
||||
LimitNOFILE=infinity
|
||||
LimitNPROC=infinity
|
||||
LimitCORE=infinity
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
[Unit]
|
||||
Description=Gitea Actions runner using docker
|
||||
Documentation=https://gitea.com/gitea/act_runner
|
||||
After=dockerd-rootless-user.service
|
||||
After=dockerd-rootless-user.service gitea.service
|
||||
|
||||
[Service]
|
||||
Environment=XDG_RUNTIME_DIR=/run/user/%U
|
||||
@@ -10,12 +10,14 @@ ExecStart=/usr/bin/act_runner daemon -c %h/act_runner/config.yaml
|
||||
ExecReload=/bin/kill -s HUP $MAINPID
|
||||
Type=exec
|
||||
WorkingDirectory=%h/act_runner
|
||||
TimeoutStartSec=5
|
||||
TimeoutStartSec=30
|
||||
TimeoutStopSec=120
|
||||
RestartSec=2
|
||||
Restart=always
|
||||
StartLimitBurst=3
|
||||
StartLimitInterval=60s
|
||||
RestartSec=5
|
||||
RestartMaxDelaySec=60
|
||||
RestartSteps=3
|
||||
StartLimitBurst=30
|
||||
StartLimitIntervalSec=180
|
||||
LimitNOFILE=infinity
|
||||
LimitNPROC=infinity
|
||||
LimitCORE=infinity
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
[Unit]
|
||||
Description=Gitea Actions runner using docker
|
||||
Documentation=https://gitea.com/gitea/act_runner
|
||||
After=docker.service
|
||||
After=docker.service gitea.service
|
||||
|
||||
[Service]
|
||||
User=act-runner
|
||||
@@ -9,12 +9,14 @@ ExecStart=/usr/bin/act_runner daemon -c /etc/gitea-act-runner/config.yaml
|
||||
ExecReload=/bin/kill -s HUP $MAINPID
|
||||
WorkingDirectory=~
|
||||
Type=exec
|
||||
TimeoutStartSec=5
|
||||
TimeoutStartSec=30
|
||||
TimeoutStopSec=120
|
||||
RestartSec=2
|
||||
Restart=always
|
||||
StartLimitBurst=3
|
||||
StartLimitInterval=60s
|
||||
RestartSec=5
|
||||
RestartMaxDelaySec=60
|
||||
RestartSteps=3
|
||||
StartLimitBurst=30
|
||||
StartLimitIntervalSec=180
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
|
||||
@@ -16,7 +16,7 @@ A runner for Gitea based on act.}
|
||||
|
||||
Name: gitea-act-runner
|
||||
Version: 0.2.11
|
||||
Release: %autorelease
|
||||
Release: %autorelease -b 5
|
||||
Summary: A runner for Gitea based on act.
|
||||
|
||||
%global act_runner_service %{name}.service
|
||||
|
||||
Reference in New Issue
Block a user