-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
Context
This site give me the idea of making upstart script.
There is a lot of article for making upstart script for Flask + Gunicorn projects.
Actually, I do not understand why I should use upstart script perfectly. Why is it not sytemd unit file, init script? I should understand what they are for.
Problem
I execute gunicorn --bind 127.0.0.1:5000 wsgi:app when I start the application every single time.
Also when I stop the process, I do ps -ef |grep '{print $2}' |xargs kill -9 every single time as well.
There is no logs. So it is hard to find the cause of bugs. If I can do just systemctl start/stop/status <service name>, it makes easier to deploy.
Solution
Make upstart script for this application. Then manage the access/error logs.
Reference
Reactions are currently unavailable