Following the previous commit, we sync the initscript with the systemd.service file. We now give nginx 10 secs to gracefully stop before force stopping it. Also we introduce a STOP_SCHEDULE variable to make this configurable.
10 lines
389 B
Text
10 lines
389 B
Text
# Note: You may want to look at the following page before setting the ULIMIT.
|
|
# http://wiki.nginx.org/CoreModule#worker_rlimit_nofile
|
|
# Set the ulimit variable if you need defaults to change.
|
|
# Example: ULIMIT="-n 4096"
|
|
#ULIMIT="-n 4096"
|
|
|
|
# Define the stop schedule for nginx
|
|
# see the start-stop-daemon --retry documentation for more information
|
|
#
|
|
#STOP_SCHEDULE="QUIT/5/TERM/5/KILL/5"
|