Enabling ossec-authd by default.

This commit is contained in:
Miguelangel Freitas
2017-11-23 16:21:14 -05:00
parent a866f41ecf
commit d1adafdcde

View File

@@ -75,11 +75,13 @@ then
fi
fi
#Enabling ossec-authd.
exec_cmd "/var/ossec/bin/ossec-control enable auth"
function ossec_shutdown(){
${DATA_PATH}/bin/ossec-control stop;
}
# Trap exit signals and do a proper shutdown
trap "ossec_shutdown; exit" SIGINT SIGTERM