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:		384d976725 ("rc.d: Add precious_machine rc.conf knob to create /var/run/noshutdown")
Reviewed by:	kib
Differential Revision:	https://reviews.freebsd.org/D54119
This commit is contained in:
Dag-Erling Smørgrav
2025-12-08 11:30:10 +01:00
parent 6ce227d627
commit e540e8b2c0
+1 -1
View File
@@ -3,7 +3,7 @@
#
# PROVIDE: noshutdown
# REQUIRE: var
# REQUIRE: FILESYSTEMS
# BEFORE: LOGIN
. /etc/rc.subr