Skip to content

Instantly share code, notes, and snippets.

@nadavkav
Created December 26, 2016 19:57
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 nadavkav/55c02bcb13df1dbd728a36b08198ab08 to your computer and use it in GitHub Desktop.
Save nadavkav/55c02bcb13df1dbd728a36b08198ab08 to your computer and use it in GitHub Desktop.
[Unit]
Description=nginx - high performance web server (compile from sources)
Documentation=http://nginx.org/en/docs/
After=network.target remote-fs.target nss-lookup.target
[Service]
#User=nginx
Type=forking
#PIDFile=/run/nginx.pid
PIDFile=/usr/local/nginx/logs/nginx.pid
ExecStartPre=/usr/local/nginx/sbin/nginx -t -c /usr/local/nginx/conf/nginx.conf
ExecStart=/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
ExecReload=/bin/kill -s HUP $MAINPID
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