causten | 508f7b5 | 2017-09-26 11:08:47 -0500 | [diff] [blame^] | 1 | [Unit] |
| 2 | Description=The NGINX HTTP and reverse proxy server |
| 3 | After=network.target |
| 4 | |
| 5 | [Service] |
| 6 | Type=forking |
| 7 | ExecStartPre=/usr/bin/env gen-cert.sh |
| 8 | ExecStartPre=-/usr/bin/env mkdir /var/volatile/nginx/ |
| 9 | ExecStartPre=/usr/bin/env nginx -t -p /var/volatile/nginx |
| 10 | ExecStart=/usr/bin/env nginx -p /var/volatile/nginx |
| 11 | ExecReload=/usr/bin/env kill -s HUP $MAINPID |
| 12 | ExecStop=/usr/bin/env kill -s QUIT $MAINPID |
| 13 | PrivateTmp=true |
| 14 | |
| 15 | [Install] |
| 16 | WantedBy={SYSTEMD_DEFAULT_TARGET} |