pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/52130: Patch to allow nginx pkg to start with configurable options
>Number: 52130
>Category: pkg
>Synopsis: Patch to allow nginx pkg to start with configurable options
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Sun Apr 02 20:15:00 +0000 2017
>Originator: Marc Baudoin
>Release: pkgsrc-current
>Organization:
>Environment:
N/A
>Description:
I've modified the nginx start script to accept arguments that can be defined in rc.conf. Please consider including my patch in the source tree.
>How-To-Repeat:
>Fix:
--- /usr/pkg/share/examples/rc.d/nginx 2017-04-02 11:51:42.000000000 +0200
+++ /etc/rc.d/nginx 2017-04-02 22:03:28.000000000 +0200
@@ -11,6 +11,7 @@
rcvar=${name}
command="/usr/pkg/sbin/${name}"
required_files="/usr/pkg/etc/nginx/${name}.conf"
+rc_flags="-c ${required_files}"
pidfile="/var/run/${name}.pid"
start_precmd="ulimit -n 2048"
extra_commands="configtest reload"
@@ -22,7 +23,7 @@
warn "${required_files} does not exist."
return 1;
fi
- ${command} -t -c ${required_files}
+ ${command} -t ${rc_flags}
}
load_rc_config $name
Home |
Main Index |
Thread Index |
Old Index