[Pkg-ossec-devel] [pkg-ossec] 03/18: Revert "Quilt update on 06-control-return-status-value patch."

Jose Antonio Quevedo Muñoz jaqm-guest at alioth.debian.org
Tue Aug 13 15:24:51 UTC 2013


This is an automated email from the git hooks/post-receive script.

jaqm-guest pushed a commit to branch debian
in repository pkg-ossec.

commit 1221f893cf88560982a73c8bc2908128f92c336f
Author: Jose Antonio Quevedo <joseantonio.quevedo at gmail.com>
Date:   Tue Aug 13 09:54:04 2013 +0200

    Revert "Quilt update on 06-control-return-status-value patch."
    
    This reverts commit 6b1ec12e74a019136e57d9a120831f61ca00776d.
---
 debian/patches/06-control-return-status-value |   86 +++++++++++++++++++++++--
 1 file changed, 79 insertions(+), 7 deletions(-)

diff --git a/debian/patches/06-control-return-status-value b/debian/patches/06-control-return-status-value
index 42a1454..6537cff 100644
--- a/debian/patches/06-control-return-status-value
+++ b/debian/patches/06-control-return-status-value
@@ -1,20 +1,92 @@
---- a/src/init/ossec-server.sh
-+++ b/src/init/ossec-server.sh
-@@ -331,6 +331,7 @@
-         ;;
+Index: pkg-ossec/src/init/ossec-server.sh
+===================================================================
+--- pkg-ossec.orig/src/init/ossec-server.sh	2012-08-29 01:19:58.000000000 +0200
++++ pkg-ossec/src/init/ossec-server.sh	2012-08-29 01:48:27.000000000 +0200
+@@ -189,14 +189,17 @@
+ # Status function
+ status()
+ {
++    retvalue=0
+     for i in ${DAEMONS}; do
+         pstatus ${i};
+         if [ $? = 0 ]; then
+             echo "${i} not running..."
++	    retvalue=1 # We return with error if some of the components is not running
+         else
+             echo "${i} is running..."
+         fi
+     done             
++    return $retvalue
+ }
+ 
+ testconfig()
+@@ -322,6 +325,7 @@
+ 	;;
    status)
      status
 +    exit $?
  	;;
    help)  
      help
---- a/src/init/ossec-local.sh
-+++ b/src/init/ossec-local.sh
-@@ -342,6 +342,8 @@
+Index: pkg-ossec/src/init/ossec-local.sh
+===================================================================
+--- pkg-ossec.orig/src/init/ossec-local.sh	2012-08-29 01:47:14.000000000 +0200
++++ pkg-ossec/src/init/ossec-local.sh	2012-08-29 01:48:23.000000000 +0200
+@@ -188,16 +188,20 @@
+ # Status function
+ status()
+ {
++    retvalue=0
+     for i in ${DAEMONS}; do
+         pstatus ${i};
+         if [ $? = 0 ]; then
+             echo "${i} not running..."
++	    retvalue=1 # We return with error if some of the components is not running
+         else
+             echo "${i} is running..."
+         fi
+     done             
++    return $retvalue
+ }
+ 
++
+ testconfig()
+ {
+     # We first loop to check the config. 
+@@ -323,6 +327,7 @@
  	;;
    status)
      status
 +    exit $?
+ 	;;
+   help)  
+     help
+Index: pkg-ossec/src/init/ossec-client.sh
+===================================================================
+--- pkg-ossec.orig/src/init/ossec-client.sh	2012-08-29 01:49:40.000000000 +0200
++++ pkg-ossec/src/init/ossec-client.sh	2012-08-29 01:50:20.000000000 +0200
+@@ -113,14 +113,17 @@
+ # Status function
+ status()
+ {
++    retvalue=0
+     for i in ${DAEMONS}; do
+         pstatus ${i};
+         if [ $? = 0 ]; then
+             echo "${i} not running..."
++	    retvalue=1 # We return with error if some of the components is not running
+         else
+             echo "${i} is running..."
+         fi
+     done             
++    return $retvalue
+ }
+ 
+ testconfig()
+@@ -242,6 +245,7 @@
+ 	;;
+   status)
+     status
 +    exit $?
  	;;
    help)  

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ossec/pkg-ossec.git



More information about the Pkg-ossec-devel mailing list