diff options
author | James Meyer <james.meyer@operamail.com> | 2011-12-07 19:26:35 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2011-12-07 19:26:35 (GMT) |
commit | 8f9766814d4ac032887c160cd98528c531a97067 (patch) | |
tree | 94a7e722f5ca7f1ebd7f3f374f94e9c7e434cea3 /abs/core/func/failed_func.sh | |
parent | 46710e350b11efbb36ab455d07f8248bfec2d620 (diff) | |
download | linhes_pkgbuild-8f9766814d4ac032887c160cd98528c531a97067.zip linhes_pkgbuild-8f9766814d4ac032887c160cd98528c531a97067.tar.gz linhes_pkgbuild-8f9766814d4ac032887c160cd98528c531a97067.tar.bz2 |
func: first build
Used by the backend to issue commands on any given system of the cluster.
Diffstat (limited to 'abs/core/func/failed_func.sh')
-rw-r--r-- | abs/core/func/failed_func.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/abs/core/func/failed_func.sh b/abs/core/func/failed_func.sh new file mode 100644 index 0000000..519265e --- /dev/null +++ b/abs/core/func/failed_func.sh @@ -0,0 +1,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 + |