From 9b451b1c38e64140284bcd94b2fb17b594295c75 Mon Sep 17 00:00:00 2001 From: "Sergey A. Osokin" Date: Wed, 13 Feb 2013 09:23:58 +0000 Subject: Add nginx_pid_prefix rcvar for ability to prevent collision with other PIDs names when using with profiles. Bump PORTREVISION. PR: 175823 --- www/nginx-devel/files/nginx.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'www/nginx-devel/files/nginx.in') diff --git a/www/nginx-devel/files/nginx.in b/www/nginx-devel/files/nginx.in index e1c413c2169c..c0765f6b676f 100644 --- a/www/nginx-devel/files/nginx.in +++ b/www/nginx-devel/files/nginx.in @@ -11,6 +11,9 @@ # Set it to "YES" to enable nginx # nginx_profiles (str): Set to "" by default. # Define your profiles here. +# nginx_pid_prefix (str): Set to "" by default. +# When using profiles manually assign value to "nginx_" +# for prevent collision with other PIDs names. # nginxlimits_enable (bool): Set to "NO" by default. # Set it to yes to run `limits $limits_args` # just before nginx starts. @@ -47,7 +50,7 @@ load_rc_config $name if [ -n "$2" ]; then profile="$2" if [ "x${nginx_profiles}" != "x" ]; then - pidfile="${_pidprefix}/${profile}.pid" + pidfile="${_pidprefix}/${nginx_pid_prefix}${profile}.pid" eval nginx_configfile="\${nginx_${profile}_configfile:-}" if [ "x${nginx_configfile}" = "x" ]; then echo "You must define a configuration file (nginx_${profile}_configfile)" -- cgit v1.2.3