Skip to content

Instantly share code, notes, and snippets.

@misterebs
Created September 7, 2018 16:50
Show Gist options
  • Save misterebs/658293fd74c09a2eae46762910f482d1 to your computer and use it in GitHub Desktop.
Save misterebs/658293fd74c09a2eae46762910f482d1 to your computer and use it in GitHub Desktop.
[Unit]
Description=nginx - high performance web server
Documentation=http://nginx.org/en/docs/
After=network-online.target remote-fs.target nss-lookup.target
Wants=network-online.target
[Service]
Type=forking
PIDFile=/usr/local/nginx/logs/nginx.pid
ExecStart=/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s TERM $MAINPID
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment