mirror of
https://git.freebsd.org/ports.git
synced 2025-05-22 03:45:17 -04:00
Pacemaker is an advanced, scalable High-Availability cluster resource manager for Linux-HA (Heartbeat) and/or Corosync. It supports "n-node" clusters with significant capabilities for managing resources and dependencies. It will run scripts at initialization, when machines go up or down, when related resources fail and can be configured to periodically check resource health. PR: 208221 Submitted by: David Shane Holden <dpejesh@yahoo.com>
31 lines
573 B
Bash
31 lines
573 B
Bash
#!/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()
|
|
{
|
|
export PATH="${PATH}:/usr/local/sbin:/usr/local/bin"
|
|
export PCMK_ipc_buffer=${pacemaker_ipc_buffer}
|
|
export PCMK_ipc_type=socket
|
|
}
|
|
|
|
run_rc_command "$1"
|