blob: 587349127d63047cc60d1b04ae791c3046e24b16 [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
7ExecStartPre=/usr/bin/env gen-cert.sh
8ExecStartPre=-/usr/bin/env mkdir /var/volatile/nginx/
9ExecStartPre=/usr/bin/env nginx -t -p /var/volatile/nginx
10ExecStart=/usr/bin/env nginx -p /var/volatile/nginx
11ExecReload=/usr/bin/env kill -s HUP $MAINPID
12ExecStop=/usr/bin/env kill -s QUIT $MAINPID
13PrivateTmp=true
14
15[Install]
16WantedBy={SYSTEMD_DEFAULT_TARGET}