summaryrefslogtreecommitdiffstats
path: root/abs/core/supplemental-web/cgi
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2011-12-21 21:07:15 (GMT)
committerJames Meyer <james.meyer@operamail.com>2011-12-21 21:07:15 (GMT)
commitf7817cd6d6bc524fbce673ec68ebe7efab8e4a46 (patch)
tree784197398e887ec798923a7aab2488e019021d1a /abs/core/supplemental-web/cgi
parentddab9d26651122643ad4f993812c6bf38d9fd911 (diff)
downloadlinhes_pkgbuild-f7817cd6d6bc524fbce673ec68ebe7efab8e4a46.zip
linhes_pkgbuild-f7817cd6d6bc524fbce673ec68ebe7efab8e4a46.tar.gz
linhes_pkgbuild-f7817cd6d6bc524fbce673ec68ebe7efab8e4a46.tar.bz2
supplemental-web: add backend_control.sh and cleanup the cgi scripts
Diffstat (limited to 'abs/core/supplemental-web/cgi')
-rw-r--r--abs/core/supplemental-web/cgi/beclear.cgi2
-rw-r--r--abs/core/supplemental-web/cgi/bestart.cgi6
-rw-r--r--abs/core/supplemental-web/cgi/bestop.cgi8
3 files changed, 12 insertions, 4 deletions
diff --git a/abs/core/supplemental-web/cgi/beclear.cgi b/abs/core/supplemental-web/cgi/beclear.cgi
index 40c0cec..489466d 100644
--- a/abs/core/supplemental-web/cgi/beclear.cgi
+++ b/abs/core/supplemental-web/cgi/beclear.cgi
@@ -1,4 +1,4 @@
#!/bin/bash
-/usr/local/bin/mythbackend --clearcache
+/usr/bin/mythbackend --clearcache
MESSAGE="settings cache is cleared "
#/usr/bin/notify.py SYS "$MESSAGE" 2>/dev/null
diff --git a/abs/core/supplemental-web/cgi/bestart.cgi b/abs/core/supplemental-web/cgi/bestart.cgi
new file mode 100644
index 0000000..10ca4ad
--- /dev/null
+++ b/abs/core/supplemental-web/cgi/bestart.cgi
@@ -0,0 +1,6 @@
+#!/bin/bash
+sudo /sbin/sv start mythbackend
+MESSAGE="`hostname` B.E. started"
+/usr/bin/func "*" call msg display "$MESSAGE" &
+
+
diff --git a/abs/core/supplemental-web/cgi/bestop.cgi b/abs/core/supplemental-web/cgi/bestop.cgi
index e45e74d..a65a16a 100644
--- a/abs/core/supplemental-web/cgi/bestop.cgi
+++ b/abs/core/supplemental-web/cgi/bestop.cgi
@@ -1,6 +1,8 @@
#!/bin/bash
-sudo /sbin/sv stop mythbackend > /dev/null
+sudo /sbin/sv stop mythbackend
MESSAGE="`hostname` B.E. stopped"
+/usr/bin/func "*" call msg display "$MESSAGE" &
+
+
+
-#echo $MESSAGE
-/usr/bin/notify.py NFO "$MESSAGE" 2>/dev/null