summaryrefslogtreecommitdiffstats
path: root/abs
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
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')
-rw-r--r--abs/core/supplemental-web/PKGBUILD12
-rw-r--r--abs/core/supplemental-web/cgi/bestart.cgi6
-rw-r--r--abs/core/supplemental-web/cgi/bestop.cgi6
3 files changed, 13 insertions, 11 deletions
diff --git a/abs/core/supplemental-web/PKGBUILD b/abs/core/supplemental-web/PKGBUILD
index 7c30873..ad10a79 100644
--- a/abs/core/supplemental-web/PKGBUILD
+++ b/abs/core/supplemental-web/PKGBUILD
@@ -1,15 +1,11 @@
pkgname=supplemental-web
pkgver=1.0
-pkgrel=10
+pkgrel=12
arch=('i686')
MVDIR=$startdir/pkg/usr/MythVantage
-#BINDIR=$MVDIR/bin
install=supplemental-web.install
-#depends=(unclutter ghosd ncid func wol )
-#binfiles="saytime.sh backup_job restore_job.sh update_system update_system_all backend_control.sh grabkey.py notify.py"
-#source=($binfiles mfegdbcommands.txt mbegdbcommands.txt 45-event.rules lighttpd-supplement.conf)
backup=('extra.cfg.txt')
-source=(lighttpd-supplement.conf extra.cfg.txt wakeonlan.sh backend_control.sh notify.py)
+source=(lighttpd-supplement.conf extra.cfg.txt wakeonlan.sh backend_control.sh)
depends=('lighttpd' 'php' 'fcgi' 'python' 'xymonserver' 'certmaster' 'func' 'python_aosd' )
@@ -23,7 +19,6 @@ build() {
install -m755 -D wakeonlan.sh $MVDIR/bin/wakeonlan.sh
install -m755 -D backend_control.sh $MVDIR/bin/backend_control.sh
-# install -m755 -D notify.py $MVDIR/bin/notify.py
mkdir -p $startdir/pkg/data/srv/httpd/htdocs/
cp -rp $startdir/contents/* $startdir/pkg/data/srv/httpd/htdocs
chmod -R 755 $startdir/pkg/data/srv/httpd/htdocs
@@ -40,5 +35,4 @@ build() {
md5sums=('2a9d042467220fd1f74f5b12730c2e06'
'3d8c7b430c1319d706ca420825918d2a'
'81cdb6ee6804fa36366c6e259a80e7b4'
- 'f37e10ef9fc84b384b9a2d41f82ef744'
- '4da05325b4f9d61d26f88c19578d1950')
+ 'f37e10ef9fc84b384b9a2d41f82ef744')
diff --git a/abs/core/supplemental-web/cgi/bestart.cgi b/abs/core/supplemental-web/cgi/bestart.cgi
index 10ca4ad..e09e42b 100644
--- a/abs/core/supplemental-web/cgi/bestart.cgi
+++ b/abs/core/supplemental-web/cgi/bestart.cgi
@@ -1,5 +1,9 @@
#!/bin/bash
-sudo /sbin/sv start mythbackend
+# MESSAGE="Trying to start `hostname` B.E."
+# /usr/bin/func "*" call msg display "$MESSAGE" &
+
+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 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" &