Skip to content

Instantly share code, notes, and snippets.

@SantoshSrinivas79
Forked from Silvenga/ghost.conf
Last active August 29, 2015 14:20
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 SantoshSrinivas79/0b3580963b8a2f128b7b to your computer and use it in GitHub Desktop.
Save SantoshSrinivas79/0b3580963b8a2f128b7b to your computer and use it in GitHub Desktop.
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