[systemd-devel] [PATCH 3/4] Adding halt binary to shutdown the system

Gustavo Sverzut Barbieri barbieri at profusion.mobi
Thu Sep 30 20:55:48 PDT 2010


2010/10/1 Andrey Borzenkov <arvidjaar at mail.ru>:
>
>
> Thu, 30 Sep 2010 18:10:47 -0300 письмо от fidencio 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
>> - Call shutdown
>> If one step fail, shutdown will be aborted
> May we have them as three different units, please?
> - killall
> - umountall
> - shutdown
> There could be alternative shutdown methods (like kexec) desired; also there
> may be extra tasks to do between umounting and shutdown, like calling UPS
> switch off command.

We (including lennart) have been discussing about the benefits to do
it in post-systemd, this will not be run as a regular init, but post
manager_loop(). Being pid1 we can use kill(-1), wait() will work for
every process, etc.

if we need things like UPS, better to make that uniform and always
call it if present.

BR,

-- 
Gustavo Sverzut Barbieri
http://profusion.mobi embedded systems
--------------------------------------
MSN: barbieri at gmail.com
Skype: gsbarbieri
Mobile: +55 (19) 9225-2202


More information about the systemd-devel mailing list