projects
/
ossec-hids.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
novi upstream verzije 2.8.3
[ossec-hids.git]
/
src
/
init
/
ossec-client.sh
diff --git
a/src/init/ossec-client.sh
b/src/init/ossec-client.sh
index
3a27bab
..
f1650f0
100755
(executable)
--- a/
src/init/ossec-client.sh
+++ b/
src/init/ossec-client.sh
@@
-11,7
+11,7
@@
DIR=`dirname $PWD`;
### Do not modify bellow here ###
NAME="OSSEC HIDS"
### Do not modify bellow here ###
NAME="OSSEC HIDS"
-VERSION="v2.7"
+VERSION="v2.8.3"
AUTHOR="Trend Micro Inc."
DAEMONS="ossec-logcollector ossec-syscheckd ossec-agentd ossec-execd"
AUTHOR="Trend Micro Inc."
DAEMONS="ossec-logcollector ossec-syscheckd ossec-agentd ossec-execd"
@@
-101,14
+101,17
@@
help()
# Status function
status()
{
# Status function
status()
{
+ RETVAL=0
for i in ${DAEMONS}; do
pstatus ${i};
if [ $? = 0 ]; then
for i in ${DAEMONS}; do
pstatus ${i};
if [ $? = 0 ]; then
+ RETVAL=1
echo "${i} not running..."
else
echo "${i} is running..."
fi
done
echo "${i} not running..."
else
echo "${i} is running..."
fi
done
+ exit $RETVAL
}
testconfig()
}
testconfig()
@@
-140,6
+143,7
@@
start()
if [ $? = 0 ]; then
${DIR}/bin/${i};
if [ $? != 0 ]; then
if [ $? = 0 ]; then
${DIR}/bin/${i};
if [ $? != 0 ]; then
+ echo "${i} did not start";
unlock;
exit 1;
fi
unlock;
exit 1;
fi