blob: 3f9dd3de680548a73fe0fe70e2bb838d00b73c3a [file] [log] [blame]
causten508f7b52017-09-26 11:08:47 -05001[Unit]
2Description=The NGINX HTTP and reverse proxy server
3After=network.target
4
5[Service]
6Type=forking
Chris Austenc0f03ac2017-09-29 18:30:03 -05007SyslogIdentifier=nginx
causten508f7b52017-09-26 11:08:47 -05008ExecStartPre=/usr/bin/env gen-cert.sh
9ExecStartPre=-/usr/bin/env mkdir /var/volatile/nginx/
10ExecStartPre=/usr/bin/env nginx -t -p /var/volatile/nginx
11ExecStart=/usr/bin/env nginx -p /var/volatile/nginx
12ExecReload=/usr/bin/env kill -s HUP $MAINPID
13ExecStop=/usr/bin/env kill -s QUIT $MAINPID
14PrivateTmp=true
Chris Austenc0f03ac2017-09-29 18:30:03 -050015# First time on system takes longer for initial setup so
16# give double normal timeout
17TimeoutStartSec=180
causten508f7b52017-09-26 11:08:47 -050018
19[Install]
20WantedBy={SYSTEMD_DEFAULT_TARGET}