summaryrefslogtreecommitdiffstats
path: root/abs/core/supplemental-web/cgi/bestop.cgi
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2011-12-25 22:38:35 (GMT)
committerJames Meyer <james.meyer@operamail.com>2011-12-25 22:38:35 (GMT)
commit11eaeebe7d98daa45e5e61703c2c10e15db9ad48 (patch)
treeeff28530e1aef11257c91a68ce900a2561a1a093 /abs/core/supplemental-web/cgi/bestop.cgi
parent90fe13c310dfbeab98a12a5dacc016f307ec4feb (diff)
downloadlinhes_pkgbuild-11eaeebe7d98daa45e5e61703c2c10e15db9ad48.zip
linhes_pkgbuild-11eaeebe7d98daa45e5e61703c2c10e15db9ad48.tar.gz
linhes_pkgbuild-11eaeebe7d98daa45e5e61703c2c10e15db9ad48.tar.bz2
supplemental-web: start/stop cgi scripts. Add an extra msg saying it's about to stop the service.
Diffstat (limited to 'abs/core/supplemental-web/cgi/bestop.cgi')
-rw-r--r--abs/core/supplemental-web/cgi/bestop.cgi6
1 files changed, 5 insertions, 1 deletions
diff --git a/abs/core/supplemental-web/cgi/bestop.cgi b/abs/core/supplemental-web/cgi/bestop.cgi
index a65a16a..c9d7fad 100644
--- a/abs/core/supplemental-web/cgi/bestop.cgi
+++ b/abs/core/supplemental-web/cgi/bestop.cgi
@@ -1,5 +1,9 @@
#!/bin/bash
-sudo /sbin/sv stop mythbackend
+MESSAGE="Trying to stop `hostname` B.E."
+/usr/bin/func "*" call msg display "$MESSAGE" &
+
+sudo /sbin/sv stop mythbackend
+
MESSAGE="`hostname` B.E. stopped"
/usr/bin/func "*" call msg display "$MESSAGE" &