31 lines
710 B
Desktop File
31 lines
710 B
Desktop File
[Unit]
|
|
Description=Gitea Actions runner using docker
|
|
Documentation=https://gitea.com/gitea/act_runner
|
|
After=dockerd-rootless-user.service gitea.service
|
|
|
|
[Service]
|
|
Environment=XDG_RUNTIME_DIR=/run/user/%U
|
|
Environment=DOCKER_HOST=unix:///run/user/%U/docker.sock
|
|
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=30
|
|
TimeoutStopSec=120
|
|
Restart=always
|
|
RestartSec=5
|
|
RestartMaxDelaySec=60
|
|
RestartSteps=3
|
|
StartLimitBurst=30
|
|
StartLimitIntervalSec=180
|
|
LimitNOFILE=infinity
|
|
LimitNPROC=infinity
|
|
LimitCORE=infinity
|
|
TasksMax=infinity
|
|
Delegate=yes
|
|
NotifyAccess=all
|
|
KillMode=mixed
|
|
|
|
[Install]
|
|
WantedBy=default.target
|