nginx.service (1173B)
1 # Stop dance for nginx 2 # ======================= 3 # 4 # ExecStop sends SIGSTOP (graceful stop) to the nginx process. 5 # If, after 5s (--retry QUIT/5) nginx is still running, systemd takes control 6 # and sends SIGTERM (fast shutdown) to the main process. 7 # After another 5s (TimeoutStopSec=5), and if nginx is alive, systemd sends 8 # SIGKILL to all the remaining processes in the process group (KillMode=mixed). 9 # 10 # nginx signals reference doc: 11 # http://nginx.org/en/docs/control.html 12 # 13 [Unit] 14 Description=nginx proxy for depolymerization 15 Documentation=man:nginx(8) 16 17 [Service] 18 Type=forking 19 PIDFile=/run/nginx.pid 20 ExecStartPre=/usr/sbin/nginx -c /home/depolymerization/.taler/config/nginx.conf -t -q -g 'daemon on; master_process on;' 21 ExecStart=/usr/sbin/nginx -c /home/depolymerization/.taler/config/nginx.conf -g 'daemon on; master_process on;' 22 ExecReload=/usr/sbin/nginx -c /home/depolymerization/.taler/config/nginx.conf -g 'daemon on; master_process on;' -s reload 23 ExecStop=-/sbin/start-stop-daemon -c /home/depolymerization/.taler/config/nginx.conf --quiet --stop --retry QUIT/5 --pidfile /run/nginx.pid 24 TimeoutStopSec=5 25 KillMode=mixed 26 27 [Install] 28 WantedBy=multi-user.target