Skip to content

Instantly share code, notes, and snippets.

@keshavpareek
Created June 23, 2017 09:58
Show Gist options
  • Save keshavpareek/7016196ac8acaecb4820f89e9aba087a to your computer and use it in GitHub Desktop.
Save keshavpareek/7016196ac8acaecb4820f89e9aba087a to your computer and use it in GitHub Desktop.
Loaction RHEL/Centos/OEL : /lib/systemd/system/nginx.service
[Unit]
Description=The NGINX HTTP and reverse proxy server
After=syslog.target network.target remote-fs.target nss-lookup.target
[Service]
Type=forking
PIDFile=/run/nginx.pid
ExecStartPre=/usr/sbin/nginx -t
ExecStart=/usr/sbin/nginx
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