uwsgi/uwsgi.service
Jorge Gallegos b7d3577ccb SystemD service definition sysconfig support
Forgot to add this before, and given that uWSGI *does* offer strong
support for environment variables, makes sense.
2014-09-18 07:53:55 -07:00

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