Skip to content

Instantly share code, notes, and snippets.

@alexcreek
Created October 20, 2016 02:43
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 alexcreek/6c4e0879e7dbec88232bbbf27685a080 to your computer and use it in GitHub Desktop.
Save alexcreek/6c4e0879e7dbec88232bbbf27685a080 to your computer and use it in GitHub Desktop.
[Unit]
Description=nginx - high performance web server
Documentation=http://nginx.org/en/docs/
After=network.target remote-fs.target nss-lookup.target
[Service]
Type=forking
KillMode=none
ExecStartPre=/usr/sbin/nginx -t
ExecStartPre=-/usr/bin/pkill -SIGQUIT nginx
ExecStart=/usr/sbin/nginx
ExecReload=/usr/sbin/nginx -s reload
ExecStop=/usr/sbin/nginx -t
ExecStop=/usr/sbin/nginx -s quit
PrivateTmp=true
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment