From 390a1449036e72436742d4529ccafb0cf8f64db5 Mon Sep 17 00:00:00 2001 From: Samuel Martin Date: Sun, 5 Oct 2014 12:46:22 +0200 Subject: package/nginx: new package nginx module selection is, by default, the same as the one sets by the upstream configure script. Patches improving the cross-compilation support have already been sent upstream for integration [1-5]. All these patches are needed because nginx uses its own handwritten build-system, which is cross-platform, but does not properly support cross-compilation. Fixes bug: #3427 [6] [1] http://mailman.nginx.org/pipermail/nginx-devel/2014-August/005722.html [2] http://mailman.nginx.org/pipermail/nginx-devel/2014-August/005724.html [3] http://mailman.nginx.org/pipermail/nginx-devel/2014-August/005725.html [4] http://mailman.nginx.org/pipermail/nginx-devel/2014-August/005723.html [5] http://mailman.nginx.org/pipermail/nginx-devel/2014-August/005726.html [6] https://bugs.uclibc.org/show_bug.cgi?id=3427 Signed-off-by: Samuel Martin Cc: Daniele Salvatore Albano Cc: Maxime Hadjinlian Cc: Johan Oudinet Cc: Thomas Petazzoni Cc: Gustavo Zacarias Signed-off-by: Thomas Petazzoni Tested-by: Thomas Petazzoni --- package/nginx/S50nginx | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 package/nginx/S50nginx (limited to 'package/nginx/S50nginx') diff --git a/package/nginx/S50nginx b/package/nginx/S50nginx new file mode 100755 index 0000000000..f555d937f9 --- /dev/null +++ b/package/nginx/S50nginx @@ -0,0 +1,25 @@ +#!/bin/sh +# +# Start/stop nginx +# + +PIDFILE=/var/run/nginx.pid + +case "$1" in + start) + echo "Starting nginx..." + mkdir -p /var/log/nginx /var/tmp/nginx + start-stop-daemon -S -x /usr/sbin/nginx -p $PIDFILE + ;; + stop) + echo -n "Stopping nginx..." + start-stop-daemon -K -o -p $PIDFILE + ;; + restart|reload) + "$0" stop + "$0" start + ;; + *) + echo "Usage: $0 {start|stop|restart}" + exit 1 +esac -- cgit v1.2.3