summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Yao <ryao@cs.stonybrook.edu>2012-07-15 08:47:02 -0400
committerWilliam Hubbs <w.d.hubbs@gmail.com>2012-07-15 14:01:03 -0500
commit39abbed7cbdd57e28ac3bd8ccb3b47b709467092 (patch)
treea9270eab7cdddc73b5591ad87bbb0e9f000e30d3
parent0730ac61e8e674c5751ff8fa3857184326a40460 (diff)
downloadopenrc-39abbed7cbdd57e28ac3bd8ccb3b47b709467092.tar.gz
openrc-39abbed7cbdd57e28ac3bd8ccb3b47b709467092.tar.bz2
openrc-39abbed7cbdd57e28ac3bd8ccb3b47b709467092.tar.xz
Fix savecore init script to execute after dumpon, but before encswap
This ensures that any kernel crash dumps are available when savecore runs. It also prevents encswap from corrupting them.
-rw-r--r--init.d/savecore.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/init.d/savecore.in b/init.d/savecore.in
index 1423046..b04d1be 100644
--- a/init.d/savecore.in
+++ b/init.d/savecore.in
@@ -6,7 +6,8 @@ description="Saves a kernel dump."
depend()
{
- need localmount
+ need dumpon localmount
+ before encswap
keyword -jail
}