log reloads to the system log
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
@@ -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
Ian Kent
maintainerQuoted 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/autofsstart/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