Squid configuration directive shutdown_lifetime

Configuration Details:

When SIGTERM or SIGHUP is received, the cache is put into
"shutdown pending" mode until all active sockets are closed.
This value is the lifetime to set for all open descriptors
during shutdown mode. Any active clients after this many
seconds will receive a 'timeout' message.