Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 2536 → Rev 2537

/scripts/alcasar-daemon.sh
17,7 → 17,7
CMD=`/usr/bin/systemctl is-active $s`
if [ $CMD != "active" ]
then
logger -i "!! $s is inactive. Activation attempt"
logger -t alcasar-daemon -i "$s is inactive. Activation attempt"
echo "the $s service is disabled! trying to start it..."
/usr/bin/systemctl start $s.service
else
42,7 → 42,7
}
fi
done
 
if [ $nb_available_srv -ne $nb_srv ]
then
echo "Restart this script to know if all is ok"
52,7 → 52,7
 
if [ `lsmod|grep ipt_NETFLOW|wc -l` == 0 ]
then
logger -i "!! ipt_netflow is inactive."
logger -t alcasar-daemon -i "ipt_netflow is inactive."
echo "The Log system is disabled! try to know why (modprobe ipt_NETFLOW)"
else
echo "The Log system is active"