buildbot: supports reloading configuration
buildbot will reload configuration on sighup
This commit is contained in:
parent
6198bb8acd
commit
df4236c904
|
@ -272,7 +272,13 @@ in {
|
||||||
Group = cfg.group;
|
Group = cfg.group;
|
||||||
WorkingDirectory = cfg.home;
|
WorkingDirectory = cfg.home;
|
||||||
# NOTE: call twistd directly with stdout logging for systemd
|
# 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"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue