LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Problem with /etc/ha.d/resource.d/apache script

To: wensong@xxxxxxxxxxxx, lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: Problem with /etc/ha.d/resource.d/apache script
From: Ryan Turnbull <ryan.turnbull@xxxxxxxxxxxxx>
Date: Tue, 14 Sep 2004 17:13:43 -0600
I have having problems with the apache script after installing on Slackware 9.1

I was getting messages about problems with line 395 of the script.  Here is the 
line.....

if
  [ ! -f "$CONFIGFILE" -a "X$COMMAND" -eq Xstop ]    <------- PROBLEMS OCCUR 
HERE
then
  echo "$CONFIGFILE not found - apache considered stopped"
  exit 0
fi


WHY??? Easy fix.  -eq is for NUMERIC comparision so change the line to the 
following:

  [ ! -f "$CONFIGFILE" -a "X$COMMAND" = "Xstop" ]

Then you will have no errors in your logs......





<Prev in Thread] Current Thread [Next in Thread>