diff -u nginx-0.6.31/debian/control nginx-0.6.31/debian/control --- nginx-0.6.31/debian/control +++ nginx-0.6.31/debian/control @@ -12,7 +12,7 @@ Package: nginx Architecture: any -Depends: ${shlibs:Depends} +Depends: ${shlibs:Depends}, lsb-base (>= 3.2-14) Provides: httpd Description: small, but very powerful and efficient web server Nginx (engine x) is a web server created by Igor Sysoev and kindly provided diff -u nginx-0.6.31/debian/init.d nginx-0.6.31/debian/init.d --- nginx-0.6.31/debian/init.d +++ nginx-0.6.31/debian/init.d @@ -24,6 +24,8 @@ set -e +. /lib/lsb/init-functions + case "$1" in start) echo -n "Starting $DESC: " @@ -52,9 +54,12 @@ --exec $DAEMON || true echo "$NAME." ;; + status) + status_of_proc -p /var/run/$NAME.pid "$DAEMON" nginx && exit 0 || exit $? + ;; *) N=/etc/init.d/$NAME - echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2 + echo "Usage: $N {start|stop|restart|reload|force-reload|status}" >&2 exit 1 ;; esac diff -u nginx-0.6.31/debian/changelog nginx-0.6.31/debian/changelog --- nginx-0.6.31/debian/changelog +++ nginx-0.6.31/debian/changelog @@ -1,3 +1,13 @@ +nginx (0.6.31-2ubuntu2) intrepid; urgency=low + + * debian/control: Add Depend on lsb >= 3.2-14, which has the + status_of_proc() function. + * debian/init.d: + - Add sourcing to '. /lib/lsb/init-functions' + - Add the 'status' action (LP: #251985). + + -- Andres Rodriguez Fri, 25 Jul 2008 13:48:49 -0500 + nginx (0.6.31-2ubuntu1) intrepid; urgency=low * Fixed FTBFS on ubuntu by properly defining IOV_MAX to its Linux