1a417af497
These resource agents are used by two cluster resource management implementations: - Pacemaker - rgmanager More information about OCF resource agents is available in the OCF Resource Agent Developer's guide, in the doc/dev-guides subdirectory. WWW: http://www.linux-ha.org/wiki/Resource_agents PR: 209005 Submitted by: David Shane Holden <dpejesh@yahoo.com>
31 lines
709 B
Text
31 lines
709 B
Text
--- heartbeat/zabbixserver.orig 2016-04-05 14:11:59 UTC
|
|
+++ heartbeat/zabbixserver
|
|
@@ -108,6 +108,7 @@ END
|
|
|
|
#######################################################################
|
|
|
|
+. /etc/rc.subr
|
|
|
|
zabbixserver_usage() {
|
|
cat <<END
|
|
@@ -124,7 +125,7 @@ END
|
|
getpid() {
|
|
# pidfile doesn't exists
|
|
[ -f $1 ] || return 1
|
|
- sed -n '1 { /[0-9]/p }' $1
|
|
+ sed -n '1 { /[0-9]/p; }' $1
|
|
|
|
return 0
|
|
}
|
|
@@ -175,7 +176,10 @@ process_status() {
|
|
pid=$1
|
|
|
|
# check if parent process is running
|
|
- ocf_run -q kill -s 0 $pid 2> /dev/null 1>&2
|
|
+ if [ -n "`_find_processes $OCF_RESKEY_binary . '-p $pid'`" ]; then
|
|
+ return $OCF_SUCCESS
|
|
+ fi
|
|
+ return $OCF_NOT_RUNNING
|
|
}
|
|
|
|
#
|