On 29-Mar-00 H. Peter Anvin wrote:
> At some point it was suggested to have SIGTERM take on the current
> function of SIGUSR2, requiring SIGINT or something similar to force a
> quit if the mount point is busy.
>
> Currently:
>
> SIGUSR1 - Expire but don't quit
> SIGUSR2 - Quit if you can, but not if busy
> SIGTERM - Quit unconditionally (but clean up)
> SIGINT - Same
> SIGKILL - Die, die, die (leaves a mess)
>
> Proposed:
>
> SIGUSR1 - Expire but don't quit
> SIGUSR2 - Quit if you can, but not if busy
> SIGTERM - Same
This is what autofs4 does now.
> SIGINT - Quit unconditionally (but clean up)
> SIGKILL - Die, die, die (leaves a mess)
These would be effectively the same thing, except SIGINT would be the
same as SIGTERM followed by SIGKILL. Either way, if something is busy it
would leave a mess in the form of a mounted catatonic autofs filesystem,
which would prevent any subsequent restart without manual intervention.
> The only problem with this is that the shutdown scripts tend to do
> SIGTERM followed by SIGKILL, which would cause automount to get
> SIGKILLed. On the other hand, at shutdown time it usually doesn't
> matter.
Yeah. At the moment I have the shutdown scripts waiting for the daemon
to exit before going on, with a longish timeout. I found this necessary
when I had a couple of hundred mounted filesystems and it was killing off
the umount process, even though they were being busily umounted.
J