Add systemd timer
deploy config / Explore-Gitea-Actions (push) Successful in 3m0s
Details
deploy config / Explore-Gitea-Actions (push) Successful in 3m0s
Details
This commit is contained in:
parent
a5986c849a
commit
63ed54996e
|
|
@ -90,6 +90,26 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
systemd = {
|
||||||
|
timers."start-runner" = {
|
||||||
|
wantedBy = [ "timers.target" ];
|
||||||
|
timerConfig = {
|
||||||
|
OnCalendar = "daily";
|
||||||
|
Persistent = true;
|
||||||
|
Unit = "start-runner.service";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
services."start-runner" = {
|
||||||
|
script = ''
|
||||||
|
/root/runner/act_runner daemon &
|
||||||
|
'';
|
||||||
|
serviceConfig = {
|
||||||
|
Type = "oneshot";
|
||||||
|
User = "root";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
# leave installation default
|
# leave installation default
|
||||||
system.stateVersion = "24.05"; # Did you read the comment?
|
system.stateVersion = "24.05"; # Did you read the comment?
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue