Fix pcmk resource agent

This commit is contained in:
Fabio M. Di Nitto 2009-09-21 07:56:03 +00:00
parent 2a11306aa5
commit 5d43014023
2 changed files with 6 additions and 3 deletions

View File

@ -131,7 +131,7 @@ diff -Nuard ocfs2-tools-1.4.2.orig/vendor/common/o2cb.ocf ocfs2-tools-1.4.2/vend
+
+status_daemon()
+{
+ PID=`pidofproc "$DAEMON"`
+ PID=`pidof "$DAEMON"`
+ if [ -n "$PID" ]; then
+ return $OCF_SUCCESS
+ fi
@ -145,7 +145,7 @@ diff -Nuard ocfs2-tools-1.4.2.orig/vendor/common/o2cb.ocf ocfs2-tools-1.4.2/vend
+ return $OCF_ERR_INSTALLED
+ fi
+
+ start_daemon "$DAEMON"; rc=$?
+ "$DAEMON"; rc=$?
+ if [ $rc != 0 ]; then
+ ocf_log err "Could not start $DAEMON"
+ return $OCF_ERR_GENERIC

View File

@ -6,7 +6,7 @@
Summary: Tools for managing the Ocfs2 cluster file system
Name: ocfs2-tools
Version: 1.4.2
Release: 4%{?alphatag:.%{alphatag}}%{?dist}
Release: 5%{?alphatag:.%{alphatag}}%{?dist}
License: GPLv2
Group: System Environment/Base
# The source for this package was pulled from upstream's git repo and manually
@ -212,6 +212,9 @@ fi
/usr/lib/ocf/resource.d/ocfs2
%changelog
* Mon Sep 21 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 1.4.2-5
- Fix pcmk resource agent.
* Tue Sep 15 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 1.4.2-4
- Add pcmk resource agent.