diff options
Diffstat (limited to 'abs/mv-core/func/failed_func.sh')
-rwxr-xr-x | abs/mv-core/func/failed_func.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/abs/mv-core/func/failed_func.sh b/abs/mv-core/func/failed_func.sh new file mode 100755 index 0000000..2ec4da7 --- /dev/null +++ b/abs/mv-core/func/failed_func.sh @@ -0,0 +1,14 @@ +. /etc/profile +. /etc/systemconfig +curl -# http://$dbhost/failed_func_hosts|grep -q `hostname` +status=$? +if [ $status = 0 ] +then + echo "removeing ca" + rm -f /etc/pki/func/* + echo "restarting func" + sv stop funcd + sleep 3 + sv start funcd +fi + |