News for hackers. Stuff that matters.
Re:Runsit – A process manager in Go by elithrar on Saturday June 21, 2014 @01:00AM (#7924248)
Mind 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.
Re:Runsit – A process manager in Go by armenb on Saturday June 21, 2014 @01:18AM (#7924279)
For 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

Re:Runsit – A process manager in Go by armenb on Saturday June 21, 2014 @01:34AM (#7924295)
Forgot to tell you that nginx shouldn't be daemonized:

  echo "daemon off;" >> /etc/nginx/nginx.conf