gentoo/www-servers/nginx/files/nginx-r1.confd
Zurab Kvachadze bd0f94bcec
www-servers/nginx: add nginx-r1.confd
This is the first revision of NGINX .confd file.

This removes the NGINX_PIDFILE configuration directive as it is now
unconditionally set to /run/${RV_SVCNAME}.pid.

Additionally, the NGINX_MAXWAITTIME variable has been added, which
configures the maximum amount of time for the upgrade() function to wait
for NGINX to start before producing an error.

Signed-off-by: Zurab Kvachadze <zurabid2016@gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/37590
Signed-off-by: Sam James <sam@gentoo.org>
2025-07-05 08:26:47 +01:00

33 lines
1.2 KiB
Plaintext

# /etc/conf.d/nginx
# Configuration file
#NGINX_CONFIGFILE="/etc/nginx/nginx.conf"
# User to run nginx as
# If you should ever change this, make sure this user has
# execution permission on any of your log directories
# (/var/log/nginx per default) but do NOT forget other log directories
# one of your vhost(s) maybe using or logging after logrotation will
# be broken).
#NGINX_USER="nginx"
# Group to run nginx as
# See the note above regarding NGINX_USER.
#NGINX_GROUP="nginx"
# You can use this configuration option to pass additional options to the
# start-stop-daemon, see start-stop-daemon(8) for more details.
# Per default we wait 1000ms after we have started the service to ensure
# that the daemon is really up and running.
#NGINX_SSDARGS="--wait 1000"
# The termination timeout (start-stop-daemon parameter "retry") ensures
# that the service will be terminated within a given time (60 + 5 seconds
# per default) when you are stopping the service.
#NGINX_TERMTIMEOUT="TERM/60/KILL/5"
# For the 'upgrade' function, this defines the maximum amount of time (in
# seconds) the script should wait for the new NGINX binary to start before
# producing an error.
#NGINX_MAXWAITTIME="3"