summaryrefslogtreecommitdiff
path: root/src/shutdown.c
AgeCommit message (Collapse)Author
2011-07-30shutdownd: add 'success message' if we retried detaching stuffKay Sievers
If we need to retry, we print things like 'Not all file systems unmounted, 1 left' We should also print something after we succeeded, so we don't leave the impression we left stuff behind.
2011-07-22shutdown: untabifyLennart Poettering
2011-07-22shutdown: initialize the controlling terminalHarald Hoyer
Thanks Kay Sievers!
2011-07-22shutdown: remove close_nointr_nofail after make_stdio callHarald Hoyer
make_stdio itsselves closes the fd already
2011-07-11shutdown: coding style fixesLennart Poettering
2011-07-04shutdown: pivot_root to a tmpfs directory to properly umount rootHarald Hoyer
check for /run/initramfs/shutdown mount bind all needed dirs to /run/initramfs pivot_root to /run/initramfs execute /run/initramfs/shutdown
2011-03-14shutdown: print a nice message when terminating a containerLennart Poettering
2011-03-14shutdown: just call exit() if we are in a containerLennart Poettering
2011-02-28Spelling CorrectionsHarald Hoyer
Just some lame spelling corrections with no functionality.
2011-02-15shutdown: execute all binaries in /lib/systemd/system-shutdown as last step ↵Lennart Poettering
before invoking reboot()
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).