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

Gustavo Sverzut Barbieri barbieri at profusion.mobi
Thu Sep 30 22:33:58 PDT 2010


On Fri, Oct 1, 2010 at 2:28 AM, Gustavo Sverzut Barbieri
<barbieri at profusion.mobi> wrote:
> 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


yay! with this and the other 3 patches I'm now able to shutdown and
unmount using only systemd!

Fabiano's patch did not include halt support and had a bug with
getppid() instead of getpid()... that was forcing early quit.

Please send comments, I just removed gentoo specific services, but we
should remove them all.

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