CentOS/RHEL init script for uWSGI
- By Jeff
- 31 October, 2011
- 3 Comments
I created this as part of the uWSGI package that I’m publishing later this week, but I thought this might also be useful to people not using the package, so here’s a separate post! Hopefully it saves somebody some work.
This script, inspired by many scripts before it for Mongrel and other app servers, looks through /etc/uwsgi and launches an instance for each .ini/.json/.xml/.yaml/.yml file it finds. It expects the directories /var/log/uwsgi and /var/run/uwsgi to exist.
You can find the script on my GitHub page for the RPM:
https://github.com/jgoldschrafe/rpm-uwsgi/blob/master/SOURCES/uwsgi.init
Copyright © 2013
indeed it already has saved “someone” some work, thanks for sharing :)
I just noticed a typo to status() that keeps it from working right in this version. It’s fixed in the latest revision, if you care to take a look.
Wow. Your RPM specs have saved me from quite a bit of yakshaving.
Much appreciated!