HomeSysadmin › CentOS/RHEL init script for uWSGI

CentOS/RHEL init script for uWSGI

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

3 Comments.[ Leave a comment ]

  1. 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.

  2. Wow. Your RPM specs have saved me from quite a bit of yakshaving.
    Much appreciated!

Leave a Comment

NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">