summaryrefslogtreecommitdiffstats
path: root/abs/core/LinHES-config/backend_control.sh
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-08-26 22:04:55 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-08-26 22:04:55 (GMT)
commit51e0b638f0d58e4e0507425b8512809208fbbaf8 (patch)
treeca357ea72d7851fe28471ea344d1acfcd8d79721 /abs/core/LinHES-config/backend_control.sh
parent3a56a447fd5912114eab0e87cf550d7af8f2524a (diff)
downloadlinhes_pkgbuild-51e0b638f0d58e4e0507425b8512809208fbbaf8.zip
linhes_pkgbuild-51e0b638f0d58e4e0507425b8512809208fbbaf8.tar.gz
linhes_pkgbuild-51e0b638f0d58e4e0507425b8512809208fbbaf8.tar.bz2
LinHES-config: move backend_contrl to LinHES-config pkg. Doesn't belong here but it's sort of a one off.
This was done because backend_control is needed by systems that may not have supplemental-web installed. Like FE only systems. Removed backend-control from supplemental-web.
Diffstat (limited to 'abs/core/LinHES-config/backend_control.sh')
-rw-r--r--abs/core/LinHES-config/backend_control.sh28
1 files changed, 28 insertions, 0 deletions
diff --git a/abs/core/LinHES-config/backend_control.sh b/abs/core/LinHES-config/backend_control.sh
new file mode 100644
index 0000000..ab58bac
--- /dev/null
+++ b/abs/core/LinHES-config/backend_control.sh
@@ -0,0 +1,28 @@
+#!/bin/bash
+#. /etc/systemconfig
+#echo $@ > /tmp/parms
+#start Slavebackend: fusion 192.168.1.120
+COMMAND=$1
+BETYPE=$2
+eval LAST=\$$#
+dbhost=`echo $LAST`
+
+
+MESSAGE=""
+case $COMMAND in
+ stop) MESSAGE=`/usr/bin/curl http://$dbhost:1337/bestop.cgi 2>/dev/null`
+ ;;
+
+ start )
+ MESSAGE=`/usr/bin/curl http://$dbhost:1337/bestart.cgi 2>/dev/null`
+ ;;
+
+ restart)
+ /usr/MythVantage/bin/backend_control.sh stop $dbhost
+ sleep 2
+ /usr/MythVantage/bin/backend_control.sh start $dbhost
+ ;;
+ clearcache)
+ MESSAGE2=`/usr/bin/curl http://$dbhost:1337/beclear.cgi 2>/dev/null`
+esac
+