diff -ruN apache2-2.2.8.orig/debian/apache2.2-common.apache2.init apache2-2.2.8/debian/apache2.2-common.apache2.init --- apache2-2.2.8.orig/debian/apache2.2-common.apache2.init 2008-03-18 07:27:48.000000000 +0900 +++ apache2-2.2.8/debian/apache2.2-common.apache2.init 2008-03-18 08:04:10.000000000 +0900 @@ -190,8 +190,17 @@ stop_htcacheclean log_end_msg 0 ;; + status) + if pidof_apache >/dev/null; then + log_success_msg "Apache is running." + exit 0 ; + else + log_failure_msg "Apache is not running." + exit 3 ; + fi + ;; *) - log_success_msg "Usage: /etc/init.d/apache2 {start|stop|restart|reload|force-reload|start-htcacheclean|stop-htcacheclean}" + log_success_msg "Usage: /etc/init.d/apache2 {start|stop|restart|reload|force-reload|start-htcacheclean|stop-htcacheclean|status}" exit 1 ;; esac diff -ruN apache2-2.2.8.orig/debian/changelog apache2-2.2.8/debian/changelog --- apache2-2.2.8.orig/debian/changelog 2008-03-18 07:27:48.000000000 +0900 +++ apache2-2.2.8/debian/changelog 2008-04-01 01:49:37.000000000 +0800 @@ -1,3 +1,11 @@ +apache2 (2.2.8-1ubuntu1) hardy; urgency=low + + * debian/apache2.2-common.apache2.init: Added support for LSB status + compliance (LP: #203169), originally coded by Dustin Kirkland + + + -- Onno Benschop Tue, 18 Mar 2008 08:15:06 +0900 + apache2 (2.2.8-1) unstable; urgency=low * New upstream version: