Skip to content

Instantly share code, notes, and snippets.

@vitormil
Created December 7, 2013 21:41
Show Gist options
  • Save vitormil/7849114 to your computer and use it in GitHub Desktop.
Save vitormil/7849114 to your computer and use it in GitHub Desktop.
description "NGINX http daemon"
start on runlevel [2345]
stop on runlevel [016]
env DAEMON=/usr/sbin/nginx
env PID=/var/run/nginx.pid
pre-start script
mkdir -p /var/log/nginx
chown -R www-data. /var/log/nginx
end script
expect fork
respawn
exec $DAEMON
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment