Fix pcmk resource agent
This commit is contained in:
parent
2a11306aa5
commit
5d43014023
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in New Issue