Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Linux Virtual Server: Users

[lvs-users] [PATCH 1/1] ldirectord: Remove dependence on shellfuncs from /etc/init.d/ldirectord

 

 

Linux Virtual Server users RSS feed   Index | Next | Previous | View Threaded


tateishi.katsuyuki at oss

Jul 28, 2011, 3:40 AM

Post #1 of 1 (371 views)
Permalink
[lvs-users] [PATCH 1/1] ldirectord: Remove dependence on shellfuncs from /etc/init.d/ldirectord

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 [at] oss>
---
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 [at] LinuxVirtualServer
Send requests to lvs-users-request [at] LinuxVirtualServer
or go to http://lists.graemef.net/mailman/listinfo/lvs-users

Linux Virtual Server users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.