[Linux-ha-dev] Patch: apache return code

Dominik Klein dk at in-telegence.net
Thu Jul 3 02:23:05 MDT 2008


Dominik Klein wrote:
> See user list. Thread "[Linux-HA] Apache failover / renaming the binary"
> 
> Regards
> Dominik

Again. Second issue though.
-------------- next part --------------
exporting patch:
# HG changeset patch
# User Dominik Klein <dk at in-telegence.net>
# Date 1215073256 -7200
# Node ID db487301a953408ab59a2fc5aadc0b26169b6c2f
# Parent  94c262e9af4978ffe6be49f3bcb079750e3ec1a6
Medium: RA: return code if $HTTPD is not installed but tried to start

diff -r 94c262e9af49 -r db487301a953 resources/OCF/apache
--- a/resources/OCF/apache	Thu Jul 03 08:27:49 2008 +0200
+++ b/resources/OCF/apache	Thu Jul 03 10:20:56 2008 +0200
@@ -564,9 +564,10 @@ then
           [ -z "$HTTPD" ]
 	then
 	  case $COMMAND in
+	    start)      exit    $OCF_ERR_INSTALLED;;
 	    stop)	exit	$OCF_SUCCESS;;
 	    monitor)	exit	$OCF_NOT_RUNNING;;
-            status)	exit  $LSB_STATUS_STOPPED;;
+            status)	exit    $LSB_STATUS_STOPPED;;
   	    meta-data)	metadata_apache;;
 	  esac
 	  ocf_log err "No valid httpd found! Please revise your <HTTPDLIST> item"


More information about the Linux-HA-Dev mailing list