All of lore.kernel.org
 help / color / mirror / Atom feed
* [autofs v4 patch] log reloads to the system log
@ 2007-01-17  1:03 jmoyer
  2007-01-17  8:27 ` Ian Kent
  0 siblings, 1 reply; 2+ messages in thread
From: jmoyer @ 2007-01-17  1:03 UTC (permalink / raw)
  To: Ian Kent; +Cc: autofs

This is a patch to address a request we had on this list not too long ago.
/etc/init.d/autofs start/stop/restart are all logged to the system log, but
reload is not.  This makes it so that reloads also get logged.

Comments welcome, as usual.

-Jeff

diff --git a/samples/rc.autofs.in b/samples/rc.autofs.in
index 5b71481..56ae82c 100644
--- a/samples/rc.autofs.in
+++ b/samples/rc.autofs.in
@@ -598,6 +598,7 @@ case "$1" in
 	if [ ! -f /var/lock/subsys/autofs ]; then
 		echo $"$prog not running"
 		RETVAL=1
+		failure "$prog reload"
 		return
 	fi
 	echo $"Checking for changes to /etc/auto.master ...."
@@ -625,6 +626,7 @@ case "$1" in
 		fi
         done )
 	rm -f $TMP1 $TMP2
+	success "$prog reload"
 	;;
   status)
 	status

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [autofs v4 patch] log reloads to the system log
  2007-01-17  1:03 [autofs v4 patch] log reloads to the system log jmoyer
@ 2007-01-17  8:27 ` Ian Kent
  0 siblings, 0 replies; 2+ messages in thread
From: Ian Kent @ 2007-01-17  8:27 UTC (permalink / raw)
  To: jmoyer; +Cc: autofs

On Tue, 2007-01-16 at 20:03 -0500, jmoyer@redhat.com wrote:
> This is a patch to address a request we had on this list not too long ago.
> /etc/init.d/autofs start/stop/restart are all logged to the system log, but
> reload is not.  This makes it so that reloads also get logged.

Yep. I grabbed a copy from the bz already.

Ian

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-01-17  8:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-17  1:03 [autofs v4 patch] log reloads to the system log jmoyer
2007-01-17  8:27 ` Ian Kent

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.