On Fri, 26 Mar 2004, Jeff Moyer wrote:
>
> It may even be beneficial to change autofs reload to send a HUP to all
> automount daemons. Ian, what do you think?
>
Adding this patch after the previous one should deal with the HUP signal.
diff -Nur autofs-4.1.1.status/samples/rc.autofs.in autofs-4.1.1/samples/rc.autofs.in
--- autofs-4.1.1.status/samples/rc.autofs.in 2004-03-29 17:28:27.000000000 +0800
+++ autofs-4.1.1/samples/rc.autofs.in 2004-03-29 17:28:43.000000000 +0800
@@ -403,6 +403,9 @@
kill -USR2 $pid 2> /dev/null
echo $"Stop $command"
fi
+ else
+ kill -HUP $pid 2> /dev/null
+ echo $"Reload map $command"
fi
done
)
@@ -464,6 +467,9 @@
then
echo "Stopping automounter: $command"
kill -USR2 $pid 2> /dev/null
+ else
+ echo "Reloading automounter map: $command"
+ kill -HUP $pid 2> /dev/null
fi
done
rm -f $TMP
_______________________________________________
autofs mailing list
[EMAIL PROTECTED]
http://linux.kernel.org/mailman/listinfo/autofs