Created
March 7, 2014 05:49
-
-
Save btobolaski/9405917 to your computer and use it in GitHub Desktop.
An Upstart script for starting and keeping a ghost blog running.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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