Skip to content

Instantly share code, notes, and snippets.

@keshavpareek
Created June 23, 2017 09:58
Show Gist options
  • Save keshavpareek/2bf6a8dbd551465e975766188c0ad065 to your computer and use it in GitHub Desktop.
Save keshavpareek/2bf6a8dbd551465e975766188c0ad065 to your computer and use it in GitHub Desktop.

Revisions

  1. 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