[systemd-devel] [PATCH 1/4] Adding halt binary to shutdown the system
Gustavo Sverzut Barbieri
barbieri at profusion.mobi
Fri Oct 1 10:02:18 PDT 2010
On Fri, Oct 1, 2010 at 1:55 PM, Lennart Poettering
<lennart at poettering.net> wrote:
> On Fri, 01.10.10 13:53, Gustavo Sverzut Barbieri (barbieri at profusion.mobi) wrote:
>
>> > As mentioned, Fabianos code is intended as last resort. The proper order
>> > in which to shut down stuff should be ensured with with the usual
>> > brefore/after dependencies.
>>
>> yes!
>>
>> Just one thing: do we still need a killall.service? Or systemd will
>> just handle it automatically?
>
> The fedora killall.service should definitely be unnecessary.
so as a summary of this thread:
- rename halt.c to shutdown.c and fix Makefile.am linking it to
core as it is not needed.
- replace getopt with strcmp of verbs: poweroff, reboot, halt
- sigtimedwait() + waitpid(WNOHANG) as replacement for alarm()
- remove sync()
- umount swap after others
- exec kexec before trying reboot action.
do we have a consensus over:
- handling of devicemapper?
- umount loop? shouldn't be required...
- waitpid() after SIGKILL
- is SIGSTOP -> SIGXYZ -> SIGCONT required?
--
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