diff --git a/heartbeat/pgagent b/heartbeat/pgagent new file mode 100644 index 000000000..b0e0e439c --- /dev/null +++ b/heartbeat/pgagent @@ -0,0 +1,121 @@ +#!/bin/sh +# +# High-Availability nginx OCF resource agent +# +# Description: starts/stops pgagent. +# Author: Oleg Selin +# License: GNU General Public License (GPL) +# +# OCF parameters: +# OCF_RESKEY_connection_string +# OCF_RESKEY_user +# OCF_RESKEY_options +# +####################################################################### +# Initialization: +: ${OCF_FUNCTIONS_DIR=${OCF_ROOT}/lib/heartbeat} +. ${OCF_FUNCTIONS_DIR}/ocf-shellfuncs + +meta_data() { + cat < + + +1.0 + +This is a pgagent Resource Agent. +Controls pgagent + + + +Connection string for pgagent. +pgagent connection string + + + +User to run pgagent as. +User to run pgagent + + + +Options for pgagent. +pgagent run options, see pgagent --help for details + + + + + + + + + + + +END +} + +####################################################################### + +pgagent_usage() { + cat <