1b255a44e5
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
18 lines
375 B
Desktop File
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
|