uwsgi/uwsgi.service
Jorge Gallegos c04fd62ef2 This was actually right. From the documentation
> By default sending the SIGTERM signal to uWSGI means "brutally
> reload the stack" while the convention is to shut an application
> down on SIGTERM. To shutdown uWSGI use SIGINT or SIGQUIT instead.
> If you absolutely can not live with uWSGI being so disrespectful
> towards SIGTERM, by all means enable the die-on-term option.

(https://uwsgi-docs.readthedocs.org/en/latest/ThingsToKnow.html)

And:

> Sending SIGHUP to the Emperor will reload all vassals.

(https://uwsgi-docs.readthedocs.org/en/latest/Emperor.html)
2013-10-05 12:18:13 -07:00

18 lines
360 B
Desktop File

[Unit]
Description=uWSGI Emperor Service
After=syslog.target
[Service]
ExecStartPre=/bin/mkdir -p /run/uwsgi
ExecStartPre=/bin/chown uwsgi:uwsgi /run/uwsgi
ExecStart=/usr/sbin/uwsgi --ini /etc/uwsgi.ini
ExecReload=/bin/kill -HUP $MAINPID
KillSignal=SIGINT
Restart=always
Type=notify
StandardError=syslog
NotifyAccess=all
[Install]
WantedBy=multi-user.target