mirror of
https://git.freebsd.org/ports.git
synced 2025-06-07 05:40:30 -04:00
- add net/pacemaker2 (2.0.0-rc4) - net/corosync -> net/corosync2 (update to 2.4.4) - net/pacemaker -> net/pacemaker1 (update to 1.1.18) - add USES=corosync to deal with multiple versions PR: 228164, 228165 Submitted by: David Shane Holden <dpejesh@yahoo.com>
27 lines
436 B
Bash
27 lines
436 B
Bash
#!/bin/sh
|
|
# $FreeBSD$
|
|
|
|
# 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"
|