[Ultrapossum-cvs 562] ultrapossum/module/failover 1.12, 1.13, update-failover

Back to archive index

Masato Taruishi taru****@users*****
2004年 9月 25日 (土) 11:49:26 JST


===================================================================
RCS file: ultrapossum/module/failover/update-failover,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- ultrapossum/module/failover/update-failover	2004/09/17 02:53:23	1.12
+++ ultrapossum/module/failover/update-failover	2004/09/25 02:49:25	1.13
@@ -115,8 +115,12 @@
 sanity_check() {
   sanity_error=0
   if test "x$TYPE" = "xmaster" && test "x$BACKUP" != "x"; then
-    if ! test -f "/etc/init.d/heartbeat"; then
-      echo "E: In order to use failover environment, need /etc/init.d/heartbeat" 1>&2
+    if ! test -x "/etc/init.d/heartbeat"; then
+      echo "E: No /etc/init.d/heartbeat found" 1>&2
+      exit 1
+    fi
+    if ! test -x "/etc/init.d/mon"; then
+      echo "E: No /etc/init.d/mon found" 1>&2
       exit 1
     fi
     if ! include "$BACKUP" "$SLAVES"; then



Ultrapossum-cvs メーリングリストの案内
Back to archive index