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 |
Chris Austen | c0f03ac | 2017-09-29 18:30:03 -0500 | [diff] [blame] | 7 | SyslogIdentifier=nginx |
causten | 508f7b5 | 2017-09-26 11:08:47 -0500 | [diff] [blame] | 8 | ExecStartPre=/usr/bin/env gen-cert.sh |
| 9 | ExecStartPre=-/usr/bin/env mkdir /var/volatile/nginx/ |
| 10 | ExecStartPre=/usr/bin/env nginx -t -p /var/volatile/nginx |
| 11 | ExecStart=/usr/bin/env nginx -p /var/volatile/nginx |
Deepak Kodihalli | bbcf9e5 | 2018-09-30 07:00:02 -0500 | [diff] [blame^] | 12 | ExecReload=/usr/bin/env gen-cert.sh ; /usr/bin/env kill -s HUP $MAINPID |
causten | 508f7b5 | 2017-09-26 11:08:47 -0500 | [diff] [blame] | 13 | ExecStop=/usr/bin/env kill -s QUIT $MAINPID |
| 14 | PrivateTmp=true |
Chris Austen | c0f03ac | 2017-09-29 18:30:03 -0500 | [diff] [blame] | 15 | # First time on system takes longer for initial setup so |
| 16 | # give double normal timeout |
| 17 | TimeoutStartSec=180 |
causten | 508f7b5 | 2017-09-26 11:08:47 -0500 | [diff] [blame] | 18 | |
| 19 | [Install] |
| 20 | WantedBy={SYSTEMD_DEFAULT_TARGET} |