diff options
author | Lassulus <github@lassul.us> | 2023-09-09 19:09:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-09 19:09:06 +0200 |
commit | 72160fbdc1b0b610476d94c3368753f0da76bf5c (patch) | |
tree | 9926e477ebb40159875452d46ff4c1990ca71b1b /nixos/modules/services | |
parent | 217407ff80823443c43db637dcd41461b913bd3b (diff) | |
parent | df4236c9043c2f7ee02847f8f1cccc0875d4ec6f (diff) | |
download | nixlib-72160fbdc1b0b610476d94c3368753f0da76bf5c.tar nixlib-72160fbdc1b0b610476d94c3368753f0da76bf5c.tar.gz nixlib-72160fbdc1b0b610476d94c3368753f0da76bf5c.tar.bz2 nixlib-72160fbdc1b0b610476d94c3368753f0da76bf5c.tar.lz nixlib-72160fbdc1b0b610476d94c3368753f0da76bf5c.tar.xz nixlib-72160fbdc1b0b610476d94c3368753f0da76bf5c.tar.zst nixlib-72160fbdc1b0b610476d94c3368753f0da76bf5c.zip |
Merge pull request #251302 from Mic92/buildbot
nixos/buildbot: support reload, buildbot-www-react: init 3.9
Diffstat (limited to 'nixos/modules/services')
-rw-r--r-- | nixos/modules/services/continuous-integration/buildbot/master.nix | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/nixos/modules/services/continuous-integration/buildbot/master.nix b/nixos/modules/services/continuous-integration/buildbot/master.nix index 595374ea1e5b..b4b997201c8f 100644 --- a/nixos/modules/services/continuous-integration/buildbot/master.nix +++ b/nixos/modules/services/continuous-integration/buildbot/master.nix @@ -272,7 +272,13 @@ in { Group = cfg.group; WorkingDirectory = cfg.home; # NOTE: call twistd directly with stdout logging for systemd - ExecStart = "${python.pkgs.twisted}/bin/twistd -o --nodaemon --pidfile= --logfile - --python ${tacFile}"; + ExecStart = "${python.pkgs.twisted}/bin/twistd -o --nodaemon --pidfile= --logfile - --python ${cfg.buildbotDir}/buildbot.tac"; + # To reload on upgrade, set the following in your configuration: + # systemd.services.buildbot-master.reloadIfChanged = true; + ExecReload = [ + "${pkgs.coreutils}/bin/ln -sf ${tacFile} ${cfg.buildbotDir}/buildbot.tac" + "${pkgs.coreutils}/bin/kill -HUP $MAINPID" + ]; }; }; }; |