blob: 60c1f45f261022665683131539c28127ae8448c3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#!/bin/sh
# $FreeBSD$
# PROVIDE: pacemaker
# REQUIRE: corosync
# KEYWORD: shutdown
. /etc/rc.subr
name="pacemaker"
rcvar="pacemaker_enable"
start_precmd="pacemaker_precmd"
load_rc_config $name
: ${pacemaker_enable:=NO}
: ${pacemaker_ipc_buffer:=0}
pidfile="/var/run/pacemakerd.pid"
procname="%%PREFIX%%/sbin/pacemakerd"
command="/usr/sbin/daemon"
command_args="-f -p ${pidfile} ${procname}"
pacemaker_precmd()
{
if [ `${SYSCTL_N} kern.ipc.maxsockbuf` -lt 18874368 ]; then
err 3 "sysctl:kern.ipc.maxsockbuf must be at least 18874368"
fi
export PATH="${PATH}:/usr/local/sbin:/usr/local/bin"
export PCMK_ipc_buffer=${pacemaker_ipc_buffer}
# https://bugs.clusterlabs.org/show_bug.cgi?id=5397
#
#export PCMK_ipc_type=socket
}
run_rc_command "$1"
|