# start nginx | |
service nginx start | |
# run config script | |
python config.py | |
# start the processes | |
python api.py & echo $!> api.pid | |
python app.py # blocking | |
# when unblocked, kill other processes and clean up | |
pkill -F api.pid | |
rm api.pid | |
# start nginx | |
service nginx start | |
# run config script | |
python config.py | |
# start the processes | |
python api.py & echo $!> api.pid | |
python app.py # blocking | |
# when unblocked, kill other processes and clean up | |
pkill -F api.pid | |
rm api.pid | |