Skip to content

Instantly share code, notes, and snippets.

@geekodour
Created August 8, 2018 23:17
Show Gist options
  • Select an option

  • Save geekodour/b40a3fd9486648f5fc1f884cb0dd510d to your computer and use it in GitHub Desktop.

Select an option

Save geekodour/b40a3fd9486648f5fc1f884cb0dd510d to your computer and use it in GitHub Desktop.
[Unit]
Description=The NGINX HTTP and reverse proxy server
After=syslog.target network.target remote-fs.target nss-lookup.target
[Service]
Type=forking
PIDFile=/var/run/nginx.pid
ExecStartPre=/usr/sbin/nginx -t
ExecStart=/usr/sbin/nginx
ExecReload=/usr/sbin/nginx -s reload
ExecStop=/bin/kill -s QUIT $MAINPID
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