Commit graph

15 commits

Author SHA1 Message Date
Harald Hoyer 35b8ca3aaf Spelling Corrections
Just some lame spelling corrections with no functionality.
2011-02-28 22:47:38 +01:00
Lennart Poettering 83cc030fad shutdown: execute all binaries in /lib/systemd/system-shutdown as last step before invoking reboot() 2011-02-15 00:30:11 +01:00
Brett Witherspoon f8d0ceb46b shutdown: use correct kexec options
The kexec man page is awful and misleading.
2011-01-19 00:35:21 +01:00
Lennart Poettering abd41c86b5 shutdown: drop redundant sync() invocation 2011-01-01 19:54:12 +01:00
Lennart Poettering 9190132924 build-sys: fix usage of path macros 2010-11-12 00:40:26 +01:00
Lennart Poettering ab58e29119 shutdown: reword a few messages a little 2010-10-28 22:11:26 +02:00
Lennart Poettering 415dbd2e54 shutdown: properly handle sigtimedwait() timing out 2010-10-26 20:51:15 +02:00
Lennart Poettering 12aad1d075 shutdown: loop only as long as we manage to unmount/detach devices, give up immediately when we are stuck 2010-10-14 18:55:04 +02:00
Lennart Poettering d48141ba0b umount: try to get rid of DM devices 2010-10-14 02:33:09 +02:00
Lennart Poettering 2ca1b42253 shutdown: log to console by default 2010-10-14 01:27:31 +02:00
Lennart Poettering e61cd18666 shutdown: make use of wait_for_terminate_and_warn() 2010-10-14 00:50:11 +02:00
Lennart Poettering d37fb98bbc shutdown: execute rescue kill only once 2010-10-14 00:49:53 +02:00
Lennart Poettering 567ea02a89 shutdown: don't chdir to /, since init is running with / as cwd anyway 2010-10-14 00:49:22 +02:00
Lennart Poettering 3c14d26c47 util: unify implementations of freeze() 2010-10-07 19:34:56 +02:00
Fabiano Fidencio b1b2a107d1 shutdown: Adding binary to shutdown the system
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).
2010-10-07 19:23:46 +02:00