I'm trying to set up runit and logging on my debian wheezy VM. So far I've managed to get gunicorn service to start by following this setup:
sudo mkdir /etc/sv/gunicorn
sudo vi /etc/sv/gunicorn/run
sudo ln -s /etc/sv/gunicorn/run /etc/service
My log run file has:
LOG_DIR=/home/$USER/logs/gunicorn/
exec svlogd -tt $LOG_DIR
When I run sudo runsvdir /etc/service/gunicorn
runsv supervise: fatal: unable to lock supervise/lock: temporary failure
No idea what I'm doing wrong, any pointers?
In ls -la /etc/service/gunicorn/supervise
i didn't see a .lock
but there was a lock
file. Removing that lock file caused a bit of mayhem.
Thus i got rid of the symlink; killed the pids in ps aux | grep gunicorn
and re symlinked. May be the ultimate end, but does get the job done.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With