summaryrefslogtreecommitdiff
path: root/www/nginx-devel/files/nginx.in
diff options
context:
space:
mode:
Diffstat (limited to 'www/nginx-devel/files/nginx.in')
-rw-r--r--www/nginx-devel/files/nginx.in5
1 files changed, 4 insertions, 1 deletions
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)"