Subversion Repositories ALCASAR

Rev

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

Rev 958 Rev 1018
Line 1... Line 1...
1
#!/bin/sh
1
#!/bin/sh
2
# $Id: alcasar-daemon.sh 958 2012-07-19 09:01:30Z franck $
2
# $Id: alcasar-daemon.sh 1018 2013-02-02 21:22:09Z franck $
3
 
3
 
4
# alcasar-daemon.sh
4
# alcasar-daemon.sh
5
# by Franck BOUIJOUX
5
# by Franck BOUIJOUX
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 25... Line 25...
25
 
25
 
26
for s in $SERVICE
26
for s in $SERVICE
27
do
27
do
28
	if [ $s != "sshd" ] 
28
	if [ $s != "sshd" ] 
29
	then
29
	then
30
	    ServiceTest ($s)
30
	    ServiceTest
31
	else
31
	else
32
	{
32
	{
33
	    if [ $SSH == "ON" ] | [ $SSH == "on" ] | [ $SSH == "On" ]
33
	    if [ $SSH == "ON" ] | [ $SSH == "on" ] | [ $SSH == "On" ]
34
	    then
34
	    then
35
		  ServiceTest ($s)
35
		  ServiceTest
36
	    fi
36
	    fi
37
	}
37
	}
38
	fi
38
	fi
39
done
39
done