[PATCH] Cosmetic fix for nscd.init

Jakub Jelinek jakub@redhat.com
Mon Feb 7 18:36:00 GMT 2005


Hi!

service nscd reload
doesn't print what it is actually doing, just [  OK  ] or [ FAILED ] etc.
and doesn't print a newline after that status string.
Fixed thusly:

2005-02-07  Jakub Jelinek  <jakub@redhat.com>

	* nscd/nscd.init (reload): Print Reloading nscd: before and a newline
	after the status string printed by killproc.

--- libc/nscd/nscd.init.jj	2004-10-18 10:20:55.000000000 +0200
+++ libc/nscd/nscd.init	2005-02-07 19:32:46.000000000 +0100
@@ -88,9 +88,9 @@ case "$1" in
 	RETVAL=$?
 	;;
     status)
-        status nscd
+	status nscd
 	RETVAL=$?
-        ;;
+	;;
     restart)
 	restart
 	RETVAL=$?
@@ -100,9 +100,11 @@ case "$1" in
 	RETVAL=$?
 	;;
     reload)
-  	killproc /usr/sbin/nscd -HUP
+    	echo -n $"Reloading $prog: "
+	killproc /usr/sbin/nscd -HUP
 	RETVAL=$?
-        ;;
+	echo
+	;;
     *)
 	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
 	RETVAL=1

	Jakub



More information about the Libc-hacker mailing list