diff -u nginx-0.7.59/debian/init.d nginx-0.7.59/debian/init.d --- nginx-0.7.59/debian/init.d +++ nginx-0.7.59/debian/init.d @@ -24,6 +24,8 @@ set -e +. /lib/lsb/init-functions + case "$1" in start) echo -n "Starting $DESC: " @@ -61,8 +63,11 @@ exit $? fi ;; + status) + status_of_proc -p /var/run/$NAME.pid "$DAEMON" nginx && exit 0 || exit $? + ;; *) - echo "Usage: $NAME {start|stop|restart|reload|force-reload|configtest}" >&2 + echo "Usage: $NAME {start|stop|restart|reload|force-reload|status|configtest}" >&2 exit 1 ;; esac diff -u nginx-0.7.59/debian/control nginx-0.7.59/debian/control --- nginx-0.7.59/debian/control +++ nginx-0.7.59/debian/control @@ -11,7 +11,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