blob: a502026a46276a44b4c9a9db240c875da1f2cb5b [file] [log] [blame]
causten13cd0ca2017-09-26 11:08:47 -05001[Unit]
2Description=The NGINX HTTP and reverse proxy server
3After=network.target
4
5[Service]
6Type=forking
Chris Austen7584d432017-09-29 18:30:03 -05007SyslogIdentifier=nginx
causten13cd0ca2017-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
Deepak Kodihallia1e7c992018-09-30 07:00:02 -050012ExecReload=/usr/bin/env gen-cert.sh ; /usr/bin/env kill -s HUP $MAINPID
causten13cd0ca2017-09-26 11:08:47 -050013ExecStop=/usr/bin/env kill -s QUIT $MAINPID
14PrivateTmp=true
Chris Austen7584d432017-09-29 18:30:03 -050015# First time on system takes longer for initial setup so
16# give double normal timeout
17TimeoutStartSec=180
causten13cd0ca2017-09-26 11:08:47 -050018
19[Install]
20WantedBy={SYSTEMD_DEFAULT_TARGET}