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 |
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" |