c04fd62ef2
> 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)
18 lines
360 B
Desktop File
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
|