2012-07-29 22:47:35 +00:00
|
|
|
[Unit]
|
|
|
|
Description=uWSGI Emperor Service
|
|
|
|
After=syslog.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
ExecStartPre=/bin/mkdir -p /run/uwsgi
|
|
|
|
ExecStartPre=/bin/chown uwsgi:uwsgi /run/uwsgi
|
2012-12-27 02:27:53 +00:00
|
|
|
ExecStart=/usr/sbin/uwsgi --ini /etc/uwsgi.ini
|
|
|
|
SuccessExitStatus=30
|
2012-07-29 22:47:35 +00:00
|
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
|
|
KillSignal=SIGINT
|
|
|
|
Restart=always
|
|
|
|
Type=notify
|
|
|
|
StandardError=syslog
|
|
|
|
NotifyAccess=all
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|