aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristos Margiolis <christos@FreeBSD.org>2025-11-11 12:07:36 +0000
committerChristos Margiolis <christos@FreeBSD.org>2025-11-11 12:07:36 +0000
commitac2aa9e869a16b28095364b2e14683df9885ac34 (patch)
treeebf702cf43d8ed4cd9659a7403c3ecb266836239
parent7dc58828f494ae8fc06ef014b01b2dbea855091b (diff)
rc: virtual_oss: Use required_modules instead of load_kld
Sponsored by: The FreeBSD Foundation MFC after: 1 week Reviewed by: imp, markj, emaste Differential Revision: https://reviews.freebsd.org/D53616
-rw-r--r--libexec/rc/rc.d/virtual_oss3
1 files changed, 2 insertions, 1 deletions
diff --git a/libexec/rc/rc.d/virtual_oss b/libexec/rc/rc.d/virtual_oss
index b9c830617385..b8f1e7620582 100644
--- a/libexec/rc/rc.d/virtual_oss
+++ b/libexec/rc/rc.d/virtual_oss
@@ -20,6 +20,8 @@ start_cmd="${name}_start"
stop_cmd="${name}_stop"
status_cmd="${name}_status"
+required_modules="cuse"
+
configs=
pidpath="/var/run/${name}"
virtual_oss_default_args="\
@@ -53,7 +55,6 @@ virtual_oss_pids()
virtual_oss_precmd()
{
/usr/bin/install -d -m 0755 -o root "${pidpath}"
- load_kld cuse
}
start_instance()