Skip to content

Instantly share code, notes, and snippets.

@keshavpareek
Last active June 23, 2017 09:59
Show Gist options
  • Save keshavpareek/990c607cfdb91c5356e1b7b4c96b66e4 to your computer and use it in GitHub Desktop.
Save keshavpareek/990c607cfdb91c5356e1b7b4c96b66e4 to your computer and use it in GitHub Desktop.

Revisions

  1. keshavpareek revised this gist Jun 23, 2017. No changes.
  2. keshavpareek created this gist Jun 23, 2017.
    15 changes: 15 additions & 0 deletions nginx.service
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    [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