Subversion Repositories ALCASAR

Rev

Rev 2840 | Rev 2875 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 2840 Rev 2864
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
# $Id: alcasar-daemon.sh 2840 2020-06-27 22:35:40Z rexy $
2
# $Id: alcasar-daemon.sh 2864 2020-10-18 09:06:17Z rexy $
3
 
3
 
4
# alcasar-daemon.sh
4
# alcasar-daemon.sh
5
# by Franck BOUIJOUX & Rexy
5
# by Franck BOUIJOUX & Rexy
6
# This script is distributed under the Gnu General Public License (GPL)
6
# This script is distributed under the Gnu General Public License (GPL)
7
# Watchdog of Services
7
# Watchdog of Services
Line 60... Line 60...
60
	echo "Restart this script to know if all is ok"
60
	echo "Restart this script to know if all is ok"
61
else
61
else
62
	echo "$nb_srv services needed by ALCASAR are started."
62
	echo "$nb_srv services needed by ALCASAR are started."
63
fi
63
fi
64
 
64
 
65
if [ `lsmod|grep ^ipt_NETFLOW|wc -l` == 0 ]
65
if [ `cat /proc/modules|grep -c ^ipt_NETFLOW` == 0 ]
66
then
66
then
67
	logger -t alcasar-daemon -i "ipt_netflow is inactive."
67
	logger -t alcasar-daemon -i "ipt_netflow is inactive."
68
	echo "The Log system is disabled! try to know why (modprobe ipt_NETFLOW)"
68
	echo "The Log system is disabled! try to know why (modprobe ipt_NETFLOW)"
69
else
69
else
70
	echo "The Log system is active"
70
	echo "The Log system is active"