Nicolas Williams wrote:
> On Thu, Sep 11, 2008 at 08:28:39AM -0700, Jordan Brown wrote:
>
>> Sorry, didn't read ahead. That seems like it would work, but seems
>> pretty complicated.
>>
>> Also: Does the daemon need to do anything after the last file system is
>> unmounted and before the system reboots?
no, just exit.
>> Remember that it will get
>> little or no warning of the impending shutdown, and since the unmounts
>> are at the very end of shutdown there's very little time.
>>
Thats fine. The unmount event is synchronous (event manager must respond
to it before the unmount can finish). After the EM responds to the
unmount it will just check if there are any more mounted ADM filesystems
and exit.
> Right, and other dependencies of the ADM daemon may by then be gone, no?
>
> Or are the filesystems it watches the *only* dependency that matters
> here?
>
Here, yes.