description "Start Max Degterev's blog on server start"
version "1.0"
author "Max Degterev <me@maxdegterev.name>"

start on runlevel [2345]
stop on runlevel [!2345]

console output
respawn limit 4 10
setuid maxdegterev
setgid maxdegterev

env USER=maxdegterev
env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
env PWD=/var/www/maxdegterev
env LANG=en_US.UTF-8
env HOME=/home/maxdegterev

chdir /var/www/maxdegterev
exec cake forever >> /var/log/maxdegterev/upstart.log 2>&1
