Commit Graph

5 Commits

Author SHA1 Message Date
wmertens
73d784337a supervisord: shell wrapper improvements
- Quote arguments properly
- Copy scripts instead of linking, reducing number of store paths
- Convert tabs to spaces
2014-12-03 12:17:41 +01:00
Luca Bruno
daab413e37 fix services.<name>.path to work both with list and string 2014-10-27 20:08:17 +01:00
Luca Bruno
41e6e64616 Some supervisor rework.
- Add supervisord.package
- Add supervisord.stateDir
- Set pidfile, logdir and childlogdir in the config,
  to make it easier from command line to override
  the single values
- Create a wrapper for supervisord and supervisorctl
- Only pass flags to supervisord if STATEDIR is non-empty
- Allow passing custom flags to supervisord and supervisorctl
- Add passthru.config to the resulting env
- Use stdenv.shell, because /bin/sh is not patched

The config.supervisord.bin is very useful in nix dev environments,
where you can just run supervisord to start all services and
supervisorctl to manage the services.

Also setting a config.supervisord.stateDir allows to run
supervisord from any directory in nix-shell. Useful if you
have multiple clones of your repository, and still want to
share the services state.
2014-10-13 16:16:31 +02:00
Jaka Hudoklin
a0674e635a add support for chaning supervisord control port 2014-08-17 21:33:59 +02:00
Jaka Hudoklin
237e857126 Add 'nix-services/' from commit 'bbc5bf5bcf4466c7acd3ef978ae77daa8cae9bac'
git-subtree-dir: nix-services
git-subtree-mainline: 6f91df3199
git-subtree-split: bbc5bf5bcf
2014-03-14 16:43:29 +00:00