git: e540e8b2c04f - main - noshutdown: Fix startup order
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 08 Dec 2025 10:31:11 UTC
The branch main has been updated by des:
URL: https://cgit.FreeBSD.org/src/commit/?id=e540e8b2c04f03b4210a3bf2f421c05b918d1b51
commit e540e8b2c04f03b4210a3bf2f421c05b918d1b51
Author: Dag-Erling Smørgrav <des@FreeBSD.org>
AuthorDate: 2025-12-08 10:30:10 +0000
Commit: Dag-Erling Smørgrav <des@FreeBSD.org>
CommitDate: 2025-12-08 10:30:10 +0000
noshutdown: Fix startup order
This rc script exists solely to create a file, so have it explicitly
require FILESYSTEMS. In its current form, it was as likely as not to
end up running before cleanvar, which would undo its work.
MFC after: 3 days
Fixes: 384d976725a5 ("rc.d: Add precious_machine rc.conf knob to create /var/run/noshutdown")
Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D54119
---
libexec/rc/rc.d/noshutdown | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libexec/rc/rc.d/noshutdown b/libexec/rc/rc.d/noshutdown
index 54924310a6c7..4c2ae9a3f488 100755
--- a/libexec/rc/rc.d/noshutdown
+++ b/libexec/rc/rc.d/noshutdown
@@ -3,7 +3,7 @@
#
# PROVIDE: noshutdown
-# REQUIRE: var
+# REQUIRE: FILESYSTEMS
# BEFORE: LOGIN
. /etc/rc.subr