* [PATCH] Cosmetic fix for nscd.init
@ 2005-02-07 18:36 Jakub Jelinek
0 siblings, 0 replies; only message in thread
From: Jakub Jelinek @ 2005-02-07 18:36 UTC (permalink / raw)
To: Ulrich Drepper; +Cc: Glibc hackers
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-02-07 18:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-07 18:36 [PATCH] Cosmetic fix for nscd.init Jakub Jelinek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).