mirror of
https://git.freebsd.org/ports.git
synced 2025-06-21 20:50:31 -04:00
26 lines
424 B
Bash
26 lines
424 B
Bash
#!/bin/sh
|
|
|
|
# PROVIDE: corosync
|
|
# REQUIRE: LOGIN FILESYSTEMS
|
|
# KEYWORD: shutdown
|
|
|
|
. /etc/rc.subr
|
|
|
|
name="corosync"
|
|
rcvar="corosync_enable"
|
|
start_precmd="corosync_precmd"
|
|
|
|
corosync_precmd()
|
|
{
|
|
if [ `${SYSCTL_N} kern.ipc.maxsockbuf` -lt 18874368 ]; then
|
|
err 3 "sysctl:kern.ipc.maxsockbuf must be at least 18874368"
|
|
fi
|
|
}
|
|
|
|
load_rc_config $name
|
|
|
|
: ${corosync_enable:=NO}
|
|
|
|
command="%%PREFIX%%/sbin/corosync"
|
|
|
|
run_rc_command "$1"
|