r2367 - in glibc-package/branches/glibc-2.6/debian: . debhelper.in
Author: madcoder
Date: 2007-06-15 10:12:23 +0000 (Fri, 15 Jun 2007)
New Revision: 2367
Modified:
glibc-package/branches/glibc-2.6/debian/changelog
glibc-package/branches/glibc-2.6/debian/debhelper.in/nscd.init
Log:
Closes 428884
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Modified: glibc-package/branches/glibc-2.6/debian/changelog
===================================================================
--- glibc-package/branches/glibc-2.6/debian/changelog 2007-06-14 21:07:23 UTC (rev 2366)
+++ glibc-package/branches/glibc-2.6/debian/changelog 2007-06-15 10:12:23 UTC (rev 2367)
@@ -85,8 +85,10 @@
people can deal with it without adding yet-another critical bug on the
glibc.
* kernelchecks.sh: add some quotes to unconfuse syntax hilighting a bit.
+ * nscd.init: ksh is confused if you call functions start or stop.
+ Closes: 428884.
- -- Pierre Habouzit <madcoder@debian.org> Thu, 14 Jun 2007 23:05:36 +0200
+ -- Pierre Habouzit <madcoder@debian.org> Fri, 15 Jun 2007 12:11:27 +0200
glibc (2.5-11) UNRELEASED; urgency=low
Modified: glibc-package/branches/glibc-2.6/debian/debhelper.in/nscd.init
===================================================================
--- glibc-package/branches/glibc-2.6/debian/debhelper.in/nscd.init 2007-06-14 21:07:23 UTC (rev 2366)
+++ glibc-package/branches/glibc-2.6/debian/debhelper.in/nscd.init 2007-06-15 10:12:23 UTC (rev 2367)
@@ -29,7 +29,7 @@
[ -x "$DAEMON" ] || exit 0
[ -d /var/run/nscd ] || mkdir -p /var/run/nscd
-start()
+start_nscd()
{
# Return
# 0 if daemon has been started
@@ -39,7 +39,7 @@
start-stop-daemon --start --quiet --pidfile "$PIDFILE" --exec "$DAEMON" || return 2
}
-stop()
+stop_nscd()
{
# Return
# 0 if daemon has been stopped
@@ -74,7 +74,7 @@
case "$1" in
start)
echo -n "Starting $DESC: $NAME"
- start
+ start_nscd
case "$?" in
0) echo "." ; exit 0 ;;
1) echo " (already running)." ; exit 0 ;;
@@ -83,7 +83,7 @@
;;
stop)
echo -n "Stopping $DESC: $NAME"
- stop
+ stop_nscd
case "$?" in
0) echo "." ; exit 0 ;;
1) echo " (not running)." ; exit 0 ;;
@@ -92,11 +92,11 @@
;;
restart|force-reload|reload)
echo -n "Restarting $DESC: $NAME"
- stop
+ stop_nscd
$DAEMON --invalidate passwd --invalidate group --invalidate hosts
case "$?" in
0|1)
- start
+ start_nscd
case "$?" in
0) echo "." ; exit 0 ;;
1) echo " (failed -- old process is still running)." ; exit 1 ;;
Reply to: