#!/bin/sh # $FreeBSD: head/net/corosync3/files/corosync.in 470799 2018-05-24 18:24:50Z flo $ # 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"