diff options
author | Devin J. Pohly <djpohly+arch@gmail.com> | 2011-11-26 12:47:30 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2011-11-26 12:50:27 +0100 |
commit | 9210d8624c44d0efda356d4bbd7ac44b0afd60b9 (patch) | |
tree | e6bac168ca9af331420b400187450436499902a2 /rc.shutdown | |
parent | 3dbbd1e28eb12171be6c8c76098a5da579724d5b (diff) | |
download | initscripts-9210d8624c44d0efda356d4bbd7ac44b0afd60b9.tar.xz |
hooks: add shutdown_preumount hook
This would be useful for filesystem monitoring software which needs to
capture all changes to the filesystem - including the final writes to
the random seed and wtmp.
[tomegun: this hook is now the same as the postkillall hook, but that might
change, so I agree with adding it for the sake of having sane semantics.]
Signed-off-by: Devin J. Pohly <djpohly+arch@gmail.com>
Signed-off-by: Tom Gundersen <teg@jklm.no>
Diffstat (limited to 'rc.shutdown')
-rwxr-xr-x | rc.shutdown | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/rc.shutdown b/rc.shutdown index 30708ce..4b513f7 100755 --- a/rc.shutdown +++ b/rc.shutdown @@ -50,6 +50,8 @@ kill_all run_hook shutdown_postkillall +run_hook shutdown_preumount + # unmount any non-api partitions that are backed by swap, we don't want to # move their contents into memory (waste of time and might caues OOM). status "Unmounting Swap-backed Filesystems" umount_all "tmpfs" |