View | Details | Raw Unified | Return to bug 175823
Collapse All | Expand All

(-)www/nginx/files/nginx.in (-1 / +2 lines)
Lines 33-38 Link Here
33
upgrade_cmd="nginx_upgrade"
33
upgrade_cmd="nginx_upgrade"
34
command="%%PREFIX%%/sbin/nginx"
34
command="%%PREFIX%%/sbin/nginx"
35
_pidprefix="%%NGINX_RUNDIR%%"
35
_pidprefix="%%NGINX_RUNDIR%%"
36
_pidprofile_prefix="nginx_"
36
pidfile="${_pidprefix}/${name}.pid"
37
pidfile="${_pidprefix}/${name}.pid"
37
_tmpprefix="%%NGINX_TMPDIR%%"
38
_tmpprefix="%%NGINX_TMPDIR%%"
38
required_files=%%PREFIX%%/etc/nginx/nginx.conf
39
required_files=%%PREFIX%%/etc/nginx/nginx.conf
Lines 47-53 Link Here
47
if [ -n "$2" ]; then
48
if [ -n "$2" ]; then
48
	profile="$2"
49
	profile="$2"
49
	if [ "x${nginx_profiles}" != "x" ]; then
50
	if [ "x${nginx_profiles}" != "x" ]; then
50
		pidfile="${_pidprefix}/${profile}.pid"
51
		pidfile="${_pidprefix}/${_pidprofile_prefix}${profile}.pid"
51
		eval nginx_configfile="\${nginx_${profile}_configfile:-}"
52
		eval nginx_configfile="\${nginx_${profile}_configfile:-}"
52
		if [ "x${nginx_configfile}" = "x" ]; then
53
		if [ "x${nginx_configfile}" = "x" ]; then
53
			echo "You must define a configuration file (nginx_${profile}_configfile)"
54
			echo "You must define a configuration file (nginx_${profile}_configfile)"

Return to bug 175823