Skip to content

Instantly share code, notes, and snippets.

@juliangruber
Created June 11, 2014 16:44
Show Gist options
  • Select an option

  • Save juliangruber/c5fb3a1e72c7ec1a2195 to your computer and use it in GitHub Desktop.

Select an option

Save juliangruber/c5fb3a1e72c7ec1a2195 to your computer and use it in GitHub Desktop.
nginx upstart script (broken)
description "nginx"
author "Julian Gruber <julian@segment.io>"
stop on shutdown
env DAEMON=/usr/sbin/nginx
env PID=/var/run/nginx.pid
env NGINX_ENV=dev
expect fork
respawn
pre-start exec $DAEMON -t
post-start exec $DAEMON -s stop
exec $DAEMON
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment