4 ms·
The article is a bit wrong about supervisord. You can load environment variables from a defaults file - just use a wrapper script. Eg: #!/bin/sh source /et
by ionelm 13y ago
The article is a bit wrong about supervisord. You can load environment variables from a defaults file - just use a wrapper script. Eg:
#!/bin/sh
source /etc/myservice/defaults
exec celeryd $@
And start that from supervisord.
Also, another nice thing, very useful for daemons that spawn their own subprocesses is killasgroup option. This is worth mentioning given the celery examples - celery can and will leave orphan processes around between restarts ...