Upstart is a ridiculously easy way to turn your scripts into daemons. Take this python script:
/home/myuser/ez_daemon.py:
exec python /home/myuser/ez_daemon.py
And that’s it!
<ul>
<li>sudo start ez_daemon</li>
<li>sudo tail -f /var/log/upstart/ez_daemon.log</li>
<li>sudo stop ez_daemon</li>
</ul>
You can do this for …
Without patching, the rsync utility lacks support to detect when a file was renamed/moved across multiple directories inside the synced tree. There is a ––fuzzy option to save bandwidth by building upon similar files on the target side, but only …
Recently we noticed some intermittent slow downs with our Gondola sites and wanted to track down the source of the issue. Our sites are all Django projects served by Apache/mod_wsgi behind an Nginx frontend proxy. Nginx’s upstream module makes the …
I really like supervisord for long-running process management. It is Python, so it is easy to install and it is easy to script with tools like Fabric. Lately I’ve been deploying smaller Django/WSGI sites with Green Unicorn behind Nginx proxied …
Here’s one I struggled with a bit while upgrading lincolnloop.com yesterday.
Scenario: You need to take your site offline and want to redirect all its traffic to a “down for maintenance” page. For search engine friendliness, that page should return …