blob: b4605bfcbb88c01147e728b7fa61f17f28c6e5ae (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
 | #!/bin/bash
MYTH_RUN_STATUS="1"
. /etc/profile
. /etc/systemconfig
#if [ x$SystemType = "xMaster_backend" -o x$SystemType = "xStandAlone" ]
#then
#    exit 0
#fi
curl -# http://$dbhost/failed_func_hosts|grep -q `hostname`
status=$?
if [ $status = 0 ]
then
	echo "removing ca (failed_func.sh)"
        touch /etc/pki/certmaster/ca/*
	rm -f /etc/pki/certmaster/*
	echo "restarting func"
	sv stop  funcd
        sv stop  certmaster
	sleep 3
        sv start certmaster
	sv start funcd
fi
 |