freebsd-dev/libexec/rc/rc.d/sysvipc
Edward Tomasz Napierala c97588b451 Move the SysV IPC stuff out of the 'abi' rc script, into a new one:
'sysvipc' - it has nothing to do with ABIs, and I'd like to later
rename 'abi' to 'linux', which better describes its purpose and also
matches the rcvar name.

Reviewed by:	emaste
MFC after:	2 weeks
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D21615
2019-09-28 09:12:41 +00:00

27 lines
323 B
Bash
Executable File

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: sysvipc
# REQUIRE: archdep
# 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
run_rc_command "$1"