Skip to content

Instantly share code, notes, and snippets.

@btobolaski
Created March 7, 2014 05:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save btobolaski/9405917 to your computer and use it in GitHub Desktop.
Save btobolaski/9405917 to your computer and use it in GitHub Desktop.
An Upstart script for starting and keeping a ghost blog running.
description "Ghost Blog"
console output
start on runlevel [2345]
stop on shutdown
respawn
respawn limit 99 5
script
cd /path/to/ghost
sudo -u deploy /usr/bin/npm start --production 2>&1
end script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment