From 492a8f87cfa405e9c880b3539e44f24204ffd7fb Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Thu, 31 Jan 2008 17:12:54 +0000 Subject: Enable fsck_shutdown again. --- conf.d/checkfs | 7 ------- conf.d/fsck | 7 +++++++ init.d/fsck | 6 ++++++ 3 files changed, 13 insertions(+), 7 deletions(-) delete mode 100644 conf.d/checkfs create mode 100644 conf.d/fsck diff --git a/conf.d/checkfs b/conf.d/checkfs deleted file mode 100644 index 351c7470..00000000 --- a/conf.d/checkfs +++ /dev/null @@ -1,7 +0,0 @@ -# fsck_shutdown causes checkfs to trigger during shutdown as well as startup. -# The end result of this is that if any periodic non-root filesystem checks are -# scheduled, under normal circumstances the actual check will happen during -# shutdown rather than at next boot. -# This is useful when periodic filesystem checks are causing undesirable -# delays at startup, but such delays at shutdown are acceptable. -fsck_shutdown="NO" diff --git a/conf.d/fsck b/conf.d/fsck new file mode 100644 index 00000000..6f039451 --- /dev/null +++ b/conf.d/fsck @@ -0,0 +1,7 @@ +# fsck_shutdown causes fsck to trigger during shutdown as well as startup. +# The end result of this is that if any periodic non-root filesystem checks are +# scheduled, under normal circumstances the actual check will happen during +# shutdown rather than at next boot. +# This is useful when periodic filesystem checks are causing undesirable +# delays at startup, but such delays at shutdown are acceptable. +fsck_shutdown="NO" diff --git a/init.d/fsck b/init.d/fsck index 01c92a69..34dd14c5 100644 --- a/init.d/fsck +++ b/init.d/fsck @@ -35,3 +35,9 @@ start() exec rc-abort; return 1;; esac } + +stop() +{ + yesno "${fsck_shutdown}" && start + return 0 +} -- cgit v1.2.3