Restart Forgejo runner when registration changes
This commit is contained in:
parent
5e58aafb07
commit
fbe8643914
1 changed files with 1 additions and 0 deletions
|
|
@ -208,6 +208,7 @@ EOF
|
||||||
User = cfg.user;
|
User = cfg.user;
|
||||||
Group = cfg.group;
|
Group = cfg.group;
|
||||||
WorkingDirectory = stateDir;
|
WorkingDirectory = stateDir;
|
||||||
|
Environment = [ "BURROW_RUNNER_REGISTRATION_FINGERPRINT=${registrationFingerprint}" ];
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
RestartSec = 2;
|
RestartSec = 2;
|
||||||
ExecStart = pkgs.writeShellScript "burrow-forgejo-runner" ''
|
ExecStart = pkgs.writeShellScript "burrow-forgejo-runner" ''
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue