Update configuration.nix
deploy config / Explore-Gitea-Actions (push) Successful in 40s Details

This commit is contained in:
Tom 2024-08-11 21:00:35 +02:00
parent b73b5868c8
commit 4d37bc95c7
1 changed files with 11 additions and 15 deletions

View File

@ -131,22 +131,18 @@
};
systemd = {
timers."start-runner" = {
wantedBy = [ "timers.target" ];
timerConfig = {
OnBootSec = "2m";
OnCalendar = "daily";
Persistent = true;
Unit = "start-runner.service";
services = {
"gitea-actions-runner" = {
serviceConfig = {
ExecStart = "/root/runner/act_runner daemon";
ExecReload = "/bin/kill -s HUP $MAINPID";
WorkingDirectory = "/root/runner";
TimeoutSec = 0;
RestartSec = 10;
Restart = "always";
# User = "root";
};
};
services."start-runner" = {
script = ''
/root/runner/act_runner daemon &
'';
serviceConfig = {
Type = "oneshot";
User = "root";
wantedBy = [ "multi-user.target" ];
};
};
};