-
-
Save SantoshSrinivas79/0b3580963b8a2f128b7b to your computer and use it in GitHub Desktop.
This file contains hidden or 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
start on filesystem and started networking | |
stop on shutdown | |
author "Santosh Srinivas" | |
description "Ghost Upstart Job for Thoughts instance" | |
version "0.1" | |
respawn | |
respawn limit 5 30 | |
env name=wwwsantoshsrinivasghost | |
env uid=ghost | |
env gid=ghost | |
env daemon=/usr/bin/node | |
env path=/var/www/santoshsrinivas/ghost/thoughts/index.js | |
script | |
export NODE_ENV=production | |
exec start-stop-daemon --start --make-pidfile --pidfile /var/run/$name.pid --name $name -c $uid:$gid -x $daemon $path >> /var/log/upstart/$name.log 2>&1 | |
end script |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment