summaryrefslogtreecommitdiffstats
path: root/abs/core/func/failed_func.sh
blob: 519265e26054a1514bec62ebc2ca8c6b0dc5f778 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
. /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)"
	rm -f /etc/pki/func/*
	echo "restarting func"
	sv stop  funcd
	sleep 3
	sv start funcd
fi