LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

[lvs-users] [PATCH 1/1] ldirectord: Remove dependence on shellfuncs from

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: [lvs-users] [PATCH 1/1] ldirectord: Remove dependence on shellfuncs from /etc/init.d/ldirectord
From: TATEISHI Katsuyuki <tateishi.katsuyuki@xxxxxxxxxxxxx>
Date: Thu, 28 Jul 2011 19:40:35 +0900 (JST)
Hi,

/etc/init.d/ldirectord reads /etc/ha.d/shellfuncs and it causes an
error when "/etc/init.d/ldirectord start" without resource-agents RPM:
============================================================
# /etc/init.d/ldirectord start
/etc/init.d/ldirectord: line 34: /etc/ha.d/shellfuncs: No such file or directory
============================================================

There are two ways to fix this problem.
 A) Install resource-agents RPM
 B) Remove line 34 in /etc/ha.d/shellfuncs

/etc/init.d/ldirectord does not use functions in /etc/ha.d/shellfuncs,
and sometimes I want to use ldirectord without HA (Pacemaker,
Heartbeat, ... and resource-agents).  So I think B is better.

Would you take a look at this patch?

Any comments are appreciated.

**

This allows /etc/init.d/ldirectord to run without resource-agents.

Signed-off-by: TATEISHI Katsuyuki <tateishi.katsuyuki@xxxxxxxxxxxxx>
---
 ldirectord/init.d/ldirectord.in |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/ldirectord/init.d/ldirectord.in b/ldirectord/init.d/ldirectord.in
index 8f84b8d..9d8083e 100755
--- a/ldirectord/init.d/ldirectord.in
+++ b/ldirectord/init.d/ldirectord.in
@@ -31,8 +31,6 @@
 
 DAEMON=@sbindir@/ldirectord
 
-. @sysconfdir@/ha.d/shellfuncs
-
 # Source function library.
 if
   [ -f /etc/rc.d/init.d/functions ]
-- 
1.7.4.4

_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
or go to http://lists.graemef.net/mailman/listinfo/lvs-users

<Prev in Thread] Current Thread [Next in Thread>
  • [lvs-users] [PATCH 1/1] ldirectord: Remove dependence on shellfuncs from /etc/init.d/ldirectord, TATEISHI Katsuyuki <=