#!/bin/sh # $FreeBSD: head/net/pacemaker/files/pacemaker.in 411799 2016-03-24 15:56:07Z tijl $ # 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"