aboutsummaryrefslogtreecommitdiff
path: root/rc.shutdown
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2011-10-23 18:02:20 +0200
committerTom Gundersen <teg@jklm.no>2011-10-29 17:28:45 +0200
commite46ee7e6c9fbbd8d21c306719170ae086cf12761 (patch)
tree82fd2a188ecbb56b4b78f74f850b96e78f7ba4af /rc.shutdown
parent697aa90c7eede255635f9c6d2e7fe12338aa2886 (diff)
downloadinitscripts-e46ee7e6c9fbbd8d21c306719170ae086cf12761.tar.xz
udev: exit on shutdown
udev was receiving some events (due to e.g. swapoff) on shutdown that caused it to fork new processes. These then receivde TERM before they could finish, and complained on the console. In principle, I'm worried that, with the right ammonut of bad luck, we could fork off some process at exactly the wrong time which escapes the killall logic. This, by the way, highlights the frailty of the killall stuff. Signed-off-by: Tom Gundersen <teg@jklm.no>
Diffstat (limited to 'rc.shutdown')
-rwxr-xr-xrc.shutdown2
1 files changed, 2 insertions, 0 deletions
diff --git a/rc.shutdown b/rc.shutdown
index 8363737..5928b2d 100755
--- a/rc.shutdown
+++ b/rc.shutdown
@@ -19,6 +19,8 @@ run_hook shutdown_start
stop_all_daemons
+status "Shutting down UDev" udevadm control --exit
+
status "Deactivating Swap" swapoff -a
# stop monitoring of lvm2 groups before unmounting filesystems