summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorLassulus <github@lassul.us>2023-09-09 19:09:06 +0200
committerGitHub <noreply@github.com>2023-09-09 19:09:06 +0200
commit72160fbdc1b0b610476d94c3368753f0da76bf5c (patch)
tree9926e477ebb40159875452d46ff4c1990ca71b1b /nixos
parent217407ff80823443c43db637dcd41461b913bd3b (diff)
parentdf4236c9043c2f7ee02847f8f1cccc0875d4ec6f (diff)
downloadnixpkgs-72160fbdc1b0b610476d94c3368753f0da76bf5c.tar
nixpkgs-72160fbdc1b0b610476d94c3368753f0da76bf5c.tar.gz
nixpkgs-72160fbdc1b0b610476d94c3368753f0da76bf5c.tar.bz2
nixpkgs-72160fbdc1b0b610476d94c3368753f0da76bf5c.tar.lz
nixpkgs-72160fbdc1b0b610476d94c3368753f0da76bf5c.tar.xz
nixpkgs-72160fbdc1b0b610476d94c3368753f0da76bf5c.tar.zst
nixpkgs-72160fbdc1b0b610476d94c3368753f0da76bf5c.zip
Merge pull request #251302 from Mic92/buildbot
nixos/buildbot: support reload, buildbot-www-react: init 3.9
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/continuous-integration/buildbot/master.nix8
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 595374ea1e5..b4b997201c8 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"
+        ];
       };
     };
   };