Package: nginx-common
Severity: wishlist
I have attached an Upstart job for the nginx-common package. This does
not include a replacement for the nginx-naxsi-ui init script.
The inclusion of this Upstart job will offer many benefits to those
using Upstart on Debian (e.g. me!) as well as Ubuntu users.
I would be very appreciative if this change was included in the next
upload of your package.
Cheers,
--
Cameron Norman
diff --git a/debian/nginx-common.nginx.upstart b/debian/nginx-common.nginx.upstart
new file mode 100644
index 0000000..0b71d57
--- /dev/null
+++ b/debian/nginx-common.nginx.upstart
@@ -0,0 +1,16 @@
+description "nginx - small, powerful, scalable web/proxy server"
+
+start on filesystem and static-network-up
+stop on runlevel [016]
+
+expect fork
+respawn
+
+pre-start script
+ [ -x /usr/sbin/nginx ] || { stop; exit 0; }
+ /usr/sbin/nginx -q -t -g 'daemon on; master_process on;' || { stop; exit 0; }
+end script
+
+exec /usr/sbin/nginx -g 'daemon on; master_process on;'
+
+pre-stop exec /usr/sbin/nginx -s quit