On Thu, 12 Sep 2019 19:17:45 -0700 (PDT), Mala Dies
> declaimed the following:
>Okay so, it works. yea! But...the server keeps running even after I stop my
>.service file or disable it.
>P.S. Does anyone know how to cancel their Gunicorn server from running
>online even after the .service file has been stopped/disabled?
You may need to add an
line to the configuration. Can't help with what would be in that line
has an entry for systemd...
ExecStart=/usr/bin/gunicorn --pid /run/gunicorn/pid \
--bind unix:/run/gunicorn/socket applicationname.wsgi
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s TERM $MAINPID
though I'm not sure how $MAINPID gets set, especially as they appear to be
stuffing the PID into a file.
Wulfraed Dennis Lee Bieber AF6VN