uwsgi/uwsgi.service
Jorge A Gallegos 1b255a44e5 Adding systemd files and changes
Still not entirely working as I want it to, need to figure out why uwsgi
returns 30 and how to make systemd understand that is fine
2012-07-29 15:47:35 -07:00

18 lines
375 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; [ $? -eq 30 ]
ExecReload=/bin/kill -HUP $MAINPID
KillSignal=SIGINT
Restart=always
Type=notify
StandardError=syslog
NotifyAccess=all
[Install]
WantedBy=multi-user.target