5 ms·
Just an introduction: Currently I'm using runsit as an alternative for supervisord and I'm happy with it so far. Stdout and stderror of the processes can be que
by armenb 12y ago
Just an introduction: Currently I'm using runsit as an alternative for supervisord and I'm happy with it so far. Stdout and stderror of the processes can be queried with a very simple HTTP interface.
Runsit watches a config directory for any changes and applies them immediately. Config files are in json format.
- fcoury 12y agoAnd the JSON parser is awesome, it gives user friendly error messages when the file has the wrong format. Very cool.
- armenb 12y agoYes it is.
- elithrar 12y agoMind sharing a (lightly commented) config? I've been using Supervisor to run my Go services for a long while (the built-in log rotation is one of the big attractions) but keen to try alternatives. I never found mmonit and other alternatives to be as comprehensive as Supervisor.
- armenb 12y agoFor instance I use following config (nginx.json) for nginx: { "user": ["_env", "${USER}"], "cwd": "/var/www", "standardEnv": true, "numFiles": 1024, "binary": "/usr/sbin/nginx" } And php-fpm.json: { "user": ["_env", "${USER}"], "cwd": "/usr/sbin", "standardEnv": true, "numFiles": 1024, "binary": "php-fpm", "args": [ "-F" ] } Hope that helps
- armenb 12y agoForgot to tell you that nginx shouldn't be daemonized: echo "daemon off;" >> /etc/nginx/nginx.conf