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
_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs