summaryrefslogtreecommitdiff
path: root/src/shutdown.c
AgeCommit message (Collapse)Author
2011-01-19shutdown: use correct kexec optionsBrett Witherspoon
The kexec man page is awful and misleading.
2011-01-01shutdown: drop redundant sync() invocationLennart Poettering
2010-11-12build-sys: fix usage of path macrosLennart Poettering
2010-10-28shutdown: reword a few messages a littleLennart Poettering
2010-10-26shutdown: properly handle sigtimedwait() timing outLennart Poettering
2010-10-14shutdown: loop only as long as we manage to unmount/detach devices, give up ↵Lennart Poettering
immediately when we are stuck
2010-10-14umount: try to get rid of DM devicesLennart Poettering
2010-10-14shutdown: log to console by defaultLennart Poettering
2010-10-14shutdown: make use of wait_for_terminate_and_warn()Lennart Poettering
2010-10-14shutdown: execute rescue kill only onceLennart Poettering
2010-10-14shutdown: don't chdir to /, since init is running with / as cwd anywayLennart Poettering
2010-10-07util: unify implementations of freeze()Lennart Poettering
2010-10-07shutdown: Adding binary to shutdown the systemFabiano Fidencio
This functions are working as follows: - Send a SIGTERM to all processes that may be finished - Send a SIGKILL to all processes that still live and may be finished - Try to unmount all mount points - Try to remount read-only all mount points that can't be umounted - Umount all swap devices - Umount and detach all loopback devices - Call [poweroff|halt|reboot|kexec] TODO: - Umount device-mapper. - Make log work. So far it is being useless as we do not parse /etc/systemd/system.conf, kernel command line but just environment, however we're executed by init and thus have no useful variables. Forcing it to target=kmsg/console and level=debug also does not produce any output, however writing to /dev/console does work (hack used during debug).