> Hi there, > i've been trying to get uWSGI running along with nginx on Arch Linux. I > do not need Emperor, as I have only one Django application to be > deployed. I've created the systemd service file as below: > > [cjurk ~]# cat /usr/lib/systemd/system/app1.uwsgi.service > [Unit] > Description=App1 via uWSGI > After=syslog.target > > [Service] > ExecStart=/usr/bin/uwsgi --ini /etc/uwsgi/app1.ini > ExecStartPre=/bin/mkdir -p /run/app1 > ExecStartPre=/bin/chown app1:app1 /run/app1 > #KillSignal=SIGINT > ExecReload=/bin/kill -HUP $MAINPID > Restart=always > Type=notify
As you are daemonizing uWSGI, you should set Type to forking and specify the PidFile. If you prefer the 'notify' system, change daemonize to logto in uWSGI config. Let me know if it works -- Roberto De Ioris http://unbit.it _______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
