### 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"
# Status function
status()
{
+ RETVAL=0
for i in ${DAEMONS}; do
pstatus ${i};
if [ $? = 0 ]; then
+ RETVAL=1
echo "${i} not running..."
else
echo "${i} is running..."
fi
done
+ exit $RETVAL
}
testconfig()
if [ $? = 0 ]; then
${DIR}/bin/${i};
if [ $? != 0 ]; then
+ echo "${i} did not start";
unlock;
exit 1;
fi