FS#25819 - [initscripts] add shutdown_preumount hook
Attached to Project:
Arch Linux
Opened by Devin J. Pohly (djpohly) - Monday, 29 August 2011, 22:17 GMT
Last edited by Tom Gundersen (tomegun) - Saturday, 26 November 2011, 12:00 GMT
Opened by Devin J. Pohly (djpohly) - Monday, 29 August 2011, 22:17 GMT
Last edited by Tom Gundersen (tomegun) - Saturday, 26 November 2011, 12:00 GMT
|
Details
Description:
rc.shutdown has a postumount hook but not a preumount hook. In contrast, rc.sysinit has both a premount and postmount hook. preumount would be useful for filesystem monitoring software which needs to capture all changes to the filesystem. Using the next earliest hook, it would miss writes to the random seed and wtmp files. Additional info: * initscripts-git |
This task depends upon
Closed by Tom Gundersen (tomegun)
Saturday, 26 November 2011, 12:00 GMT
Reason for closing: Implemented
Saturday, 26 November 2011, 12:00 GMT
Reason for closing: Implemented
I was hesitating a bit as now (due to some recent shuffling) the hook will coincide with the postkillall hook. However, I decided it would be best if hook authors don't have to worry about changes to initscripts and just rely on the semantics of the hooks as described in /etc/rc.d/functions.