aboutsummaryrefslogtreecommitdiff
path: root/libexec/rc/rc.d/sysvipc
diff options
context:
space:
mode:
Diffstat (limited to 'libexec/rc/rc.d/sysvipc')
-rwxr-xr-xlibexec/rc/rc.d/sysvipc29
1 files changed, 29 insertions, 0 deletions
diff --git a/libexec/rc/rc.d/sysvipc b/libexec/rc/rc.d/sysvipc
new file mode 100755
index 000000000000..ce38db598641
--- /dev/null
+++ b/libexec/rc/rc.d/sysvipc
@@ -0,0 +1,29 @@
+#!/bin/sh
+#
+#
+
+# PROVIDE: sysvipc
+# REQUIRE: kldxref
+# KEYWORD: nojail
+
+. /etc/rc.subr
+
+name="sysvipc"
+desc="Load SysV IPC modules"
+rcvar="sysvipc_enable"
+start_cmd="${name}_start"
+stop_cmd=":"
+
+sysvipc_start()
+{
+ load_kld sysvmsg
+ load_kld sysvsem
+ load_kld sysvshm
+}
+
+load_rc_config $name
+
+# doesn't make sense to run in a svcj: privileged operations
+sysvipc_svcj="NO"
+
+run_rc_command "$1"