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/nginx.service | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 package/nginx/nginx.service (limited to 'package/nginx/nginx.service') diff --git a/package/nginx/nginx.service b/package/nginx/nginx.service new file mode 100644 index 0000000000..619755fe2e --- /dev/null +++ b/package/nginx/nginx.service @@ -0,0 +1,15 @@ +[Unit] +Description=A high performance web server and a reverse proxy server +After=syslog.target network.target + +[Service] +Type=forking +PIDFile=/var/run/nginx.pid +ExecStartPre=/usr/bin/mkdir -p /var/log/nginx /var/tmp/nginx; /usr/sbin/nginx -t -q -g 'pid /var/run/nginx.pid; daemon on; master_process on;' +ExecStart=/usr/sbin/nginx -g 'pid /var/run/nginx.pid; daemon on; master_process on;' +ExecReload=/usr/sbin/nginx -g 'pid /var/run/nginx.pid; daemon on; master_process on;' -s reload +ExecStop=/usr/sbin/nginx -g 'pid /var/run/nginx.pid;' -s quit +PrivateDevices=yes + +[Install] +WantedBy=multi-user.target -- cgit v1.2.3