Subversion Repositories ALCASAR

Rev

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

Rev 2488 Rev 2520
Line 1... Line 1...
1
#!/bin/sh
1
#!/bin/sh
2
# $Id: alcasar-daemon.sh 2488 2018-02-25 14:53:54Z lucas.echard $
2
# $Id: alcasar-daemon.sh 2520 2018-04-02 17:32:07Z 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 35... Line 35...
35
		{
35
		{
36
		if [ $SSH == "ON" ] || [ $SSH == "on" ] || [ $SSH == "On" ]
36
		if [ $SSH == "ON" ] || [ $SSH == "on" ] || [ $SSH == "On" ]
37
		then
37
		then
38
			ServiceTest
38
			ServiceTest
39
		else
39
		else
40
			nb_available_srv=$((nb_available_srv-1))		
40
			nb_available_srv=$((nb_available_srv-1))
41
		fi
41
		fi
42
		}
42
		}
43
	fi
43
	fi
44
done
44
done
-
 
45
	
45
if [ $nb_available_srv -ne $nb_srv ]
46
if [ $nb_available_srv -ne $nb_srv ]
46
	then
47
then
47
	echo "restart this script to know if all is ok"
48
	echo "Restart this script to know if all is ok"
-
 
49
else
-
 
50
	echo "$nb_srv services needed by ALCASAR are started."
-
 
51
fi
-
 
52
 
-
 
53
if [ `lsmod|grep ipt_NETFLOW|wc -l` == 0 ]
-
 
54
then
-
 
55
	logger -i "!! ipt_netflow is inactive."
-
 
56
	echo "The Log system is disabled! try to know why (modprobe ipt_NETFLOW)"
48
else
57
else
49
	echo "$nb_srv services needed by ALCASAR are started. All is ok"
58
	echo "The Log system is active"
50
fi
59
fi