Service restart script

October 26, 2012
Tags: , , , ,

For when just restarting everything is more expedient than figuring out what’s really going on (i.e. don’t do this) : # more services.web.restart ## This is an alternative to : # run_count=`ps eax | grep ${process} | grep -v grep | wc -l` if [ ! "$(pidof mysqld)" ]; then service mysqld restart fi if [...]

0

nginx configuration for uwsgi for Flask

November 18, 2011

/etc/nginx/conf.d/site.conf : server {  server_name example.com www.example.com;  root home/example/flask/static;    location ~ ^/(img|js|css)/ {  # |pi||ext|theme   root                    /home/example/flask/static;   add_header              Cache-Control public;   #expires                 30d;   #access_log         [...]

0

Building uwsgi from src.rpm without Python 3

November 16, 2011

To build uwsgi on Fedora 12 (which has no easy-to-find python3 rpm), run through the rpmbuild process (shown in a previous post in more detail for nginx) and make the following changes : wget http://kad.fedorapeople.org/packages/uwsgi/uwsgi-0.9.9.2-2.fc15.src.rpm rpm -ivh uwsgi-0.9.9.2-2.fc15.src.rpm rpmbuild -bb  ~/rpmbuild/SPECS/uwsgi.spec yum install python-devel libuuid-devel jansson-devel libyaml-devel ruby-devel python3-devel python-greenlet-devel  lua-devel  ruby # NB: python3-devel [...]

0