[systemd-devel] [PATCH 1/4] Adding halt binary to shutdown the system
Michael Biebl
mbiebl at gmail.com
Fri Oct 1 09:02:56 PDT 2010
2010/10/1 Michael Biebl <mbiebl at gmail.com>:
> 2010/10/1 Gustavo Sverzut Barbieri <barbieri at profusion.mobi>:
>> From: Fabiano Fidencio <fidencio at profusion.mobi>
>>
>> This functions are working as follows:
>> - Send a SIGTERM to all process
>> - Send a SIGKILL to all process
>> - Try to umount all mount points
>> - Try to remount read-only all mount points that can't
>> be umounted
>
> What about remote mounts (e.g. NFS requiring portmap) or fuse mounts?
> If you kill their processes before unmounting you can not unmount
> those fs cleanly.
Other important use cases:
- LVM
- RAID/mdam
- luks/cryptsetup
How can those tools hook into the shutdown process so they can
correctly tear down their devices *after* running processes have been
stopped?
In Debian we have dedicated sysv init scripts which run after the
killall script and before the shutdown script.
--
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
More information about the systemd-devel
mailing list