#!/bin/bash # # Michael Vallaly (Aug '11) Ver 1.0 # # IPVS Supervisor daemon OCF resource handler script # AWK_BIN="/usr/bin/awk" CURL_BIN="/usr/bin/curl" EGREP_BIN="/bin/egrep" CURL_TIMEOUT_SEC=5 SUPERVISOR_URL="http://127.0.0.1:9292" ####################################################################### # Pull in OCF functions . /usr/lib/ocf/resource.d/heartbeat/.ocf-shellfuncs ####################################################################### meta_data() { cat < 1.0 This is the Big Brother Resource Agent. It enables the management and monitoring of IPVS via the OCF resource API. Big Brother resource agent Cluster Name as defined in the Big Brother Configuration Cluster Name END } ####################################################################### # don't exit on TERM, to test that lrmd makes sure that we do exit trap sigterm_handler TERM sigterm_handler() { ocf_log info "Attempted to use TERM to bring us down. No such luck." return } ipvs_cluster_usage() { cat <