Skip to content

Commit

Permalink
buildbot NixOS modules: switch to not daemonize
Browse files Browse the repository at this point in the history
1) The forking behavior of `buildbot start` is temporarily broken for
   mysterious reasons that I'm still looking into
2) Let systemd do the forking: no point in using two different process
   startup wait loops
  • Loading branch information
copumpkin committed Mar 10, 2017
1 parent bce3529 commit c390cec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Expand Up @@ -217,11 +217,11 @@ in {
path = cfg.packages;

serviceConfig = {
Type = "forking";
Type = "simple";
User = cfg.user;
Group = cfg.group;
WorkingDirectory = cfg.home;
ExecStart = "${cfg.package}/bin/buildbot start ${cfg.buildbotDir}";
ExecStart = "${cfg.package}/bin/buildbot start --nodaemon ${cfg.buildbotDir}";
};

preStart = ''
Expand Down
Expand Up @@ -111,11 +111,11 @@ in {
'';

serviceConfig = {
Type = "forking";
Type = "simple";
User = cfg.user;
Group = cfg.group;
WorkingDirectory = cfg.home;
ExecStart = "${cfg.package}/bin/buildbot-worker start ${cfg.buildbotDir}";
ExecStart = "${cfg.package}/bin/buildbot-worker start --nodaemon ${cfg.buildbotDir}";
};

};
Expand Down

1 comment on commit c390cec

@copumpkin
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cc @nand0p

Seemed to work in my quick test

Please sign in to comment.