r971 - in glibc-package/trunk/debian: . debhelper.in
Author: gotom
Date: 2005-07-28 02:18:43 +0000 (Thu, 28 Jul 2005)
New Revision: 971
Modified:
glibc-package/trunk/debian/changelog
glibc-package/trunk/debian/debhelper.in/nscd.init
Log:
* Stephen Gildea <gildea@stop.mail-abuse.org>:
- debian/debhelper.in/nscd.init: Provides a "status" option, fix the exit
status if the script is given an unsupported option. (Closes: #312404)
Modified: glibc-package/trunk/debian/changelog
===================================================================
--- glibc-package/trunk/debian/changelog 2005-07-24 06:51:54 UTC (rev 970)
+++ glibc-package/trunk/debian/changelog 2005-07-28 02:18:43 UTC (rev 971)
@@ -55,6 +55,10 @@
duplication when at least a locale is defined twice in /etc/locale.gen.
(Closes: #271526)
+ * Stephen Gildea <gildea@stop.mail-abuse.org>:
+ - debian/debhelper.in/nscd.init: Provides a "status" option, fix the exit
+ status if the script is given an unsupported option. (Closes: #312404)
+
-- GOTO Masanori <gotom@debian.org> Sun, 17 Jul 2005 17:27:30 +0900
glibc (2.3.5-2) experimental; urgency=low
Modified: glibc-package/trunk/debian/debhelper.in/nscd.init
===================================================================
--- glibc-package/trunk/debian/debhelper.in/nscd.init 2005-07-24 06:51:54 UTC (rev 970)
+++ glibc-package/trunk/debian/debhelper.in/nscd.init 2005-07-28 02:18:43 UTC (rev 971)
@@ -56,8 +56,19 @@
restart)
$0 force-reload
;;
+ status)
+ echo -n "Status of $(basename $0) service: "
+ if pidof /usr/sbin/nscd > /dev/null ; then
+ echo "running."
+ RETVAL=0
+ else
+ echo "not running."
+ RETVAL=3
+ fi
+ ;;
*)
- echo "Usage: /etc/init.d/nscd {start|stop|reload|force-reload|restart}"
+ echo "Usage: /etc/init.d/nscd {start|stop|reload|force-reload|restart|status}"
+ RETVAL=1
;;
esac
exit $RETVAL
Reply to: