How to add delay to a supervised process in supervisor - linux

I added a bottle server that uses the passon cassandra library, but it exits with this error:
Bottle FATAL Exited too quickly (process log may have details)
the magazine shows this:
File "/usr/local/lib/python2.7/dist-packages/cassandra/cluster.py", line 1765, in _reconnect_internal raise NoHostAvailable("Unable to connect to any servers", errors)

So, I tried to launch it manually, using the initial bottle of the supervisor, and then it will start without problems. Conclusion = The bottle service starts too fast (before the cassandra-controlled service does it): a delay is required!

+8
python linux bottle cassandra supervisor
source share
1 answer

This is what I use:

 [program:uwsgi] command=bash -c 'sleep 5 && uwsgi /etc/uwsgi.ini' 
+16
source share

All Articles