diff options
Diffstat (limited to 'net/corosync2/files/corosync.in')
-rw-r--r-- | net/corosync2/files/corosync.in | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/net/corosync2/files/corosync.in b/net/corosync2/files/corosync.in new file mode 100644 index 000000000000..58e82ffa08fe --- /dev/null +++ b/net/corosync2/files/corosync.in @@ -0,0 +1,27 @@ +#!/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" |