aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2025-12-08 10:30:10 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2025-12-08 10:30:10 +0000
commite540e8b2c04f03b4210a3bf2f421c05b918d1b51 (patch)
treec6afac79c9a8e13bfe413e8b3486c92ef7da0331
parent6ce227d6274869a95150746d2f2d8c8c5ed9a266 (diff)
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
-rwxr-xr-xlibexec/rc/rc.d/noshutdown2
1 files changed, 1 insertions, 1 deletions
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