I started this blog using the Ghost application on Digital Ocean and I've been tweaking the setup constantly over the last few months. One thing that really bothered me was how long it takes Ghost to restart. Running sudo service ghost restart took 30 seconds or more sometimes. I'm not really sure why it took so long, but I decided to stop using init and switch to Upstart. I couldn't find a good Upstart script, so I ended up writing it myself. Here it is:

description "Ghost (node server)"

start on (filesystem and net-device-up IFACE=eth0)  
stop on runlevel [!2345]

respawn limit 10 5

setuid ghost  
setgid ghost  
chdir /var/www/ghost

env NODE_ENV=production

exec /usr/local/bin/node /var/www/ghost/index.js

Wanna start your own Ghost blog? Here are some great instructions. Use this link to sign up for Digital Ocean if you wanna hook me up with a bit of free hosting. Thanks :)