b7d3577ccb
Forgot to add this before, and given that uWSGI *does* offer strong support for environment variables, makes sense.
19 lines
398 B
Desktop File
19 lines
398 B
Desktop File
[Unit]
|
|
Description=uWSGI Emperor Service
|
|
After=syslog.target
|
|
|
|
[Service]
|
|
EnvironmentFile=-/etc/sysconfig/uwsgi
|
|
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
|