Skip to contentSkip to conversation

log reloads to the system log

PATCH In review [email protected] 2 participants 2 messages Jan 17, 2007 Kernel automounter

lore
Share & tools
lore
#0 lore raw

PATCH v4 1/1 log reloads to the system log

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

samples/rc.autofs.in +2 -0
index 5b71481..56ae82c 100644
@@ -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
maintainer
#1 lore raw
Quoted 3 lines · On Tue, 2007-01-16 at 20:03 -0500, [email protected] 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