diff options
author | Britney Fransen <brfransen@gmail.com> | 2013-11-07 15:23:43 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2013-11-07 15:23:43 (GMT) |
commit | 1468cf62b07b10ab3d87bca6f54b20dc8b816abd (patch) | |
tree | 88f2b9adca37f060436082b9f0156649cae73c4b /abs/core/supplemental-web | |
parent | 3dd79ac0d69d48f8f018121c5a7c1c5e7c56ba8c (diff) | |
download | linhes_pkgbuild-1468cf62b07b10ab3d87bca6f54b20dc8b816abd.zip linhes_pkgbuild-1468cf62b07b10ab3d87bca6f54b20dc8b816abd.tar.gz linhes_pkgbuild-1468cf62b07b10ab3d87bca6f54b20dc8b816abd.tar.bz2 |
supplemental-web: bestart.cgi, bestop.cgi, beclear.cgi: update OSD messages
Diffstat (limited to 'abs/core/supplemental-web')
-rw-r--r-- | abs/core/supplemental-web/PKGBUILD | 2 | ||||
-rw-r--r-- | abs/core/supplemental-web/cgi/beclear.cgi | 2 | ||||
-rw-r--r-- | abs/core/supplemental-web/cgi/bestart.cgi | 15 | ||||
-rw-r--r-- | abs/core/supplemental-web/cgi/bestop.cgi | 15 |
4 files changed, 19 insertions, 15 deletions
diff --git a/abs/core/supplemental-web/PKGBUILD b/abs/core/supplemental-web/PKGBUILD index 090b6ec..5448bcc 100644 --- a/abs/core/supplemental-web/PKGBUILD +++ b/abs/core/supplemental-web/PKGBUILD @@ -1,7 +1,7 @@ pkgbase=supplemental-web pkgname=('supplemental-web' 'supplemental-web-slave') pkgver=8.0 -pkgrel=11 +pkgrel=12 arch=('i686' 'x86_64') license=('GPL') backup=('data/srv/httpd/cgi/extra.cfg.txt') diff --git a/abs/core/supplemental-web/cgi/beclear.cgi b/abs/core/supplemental-web/cgi/beclear.cgi index 489466d..941c958 100644 --- a/abs/core/supplemental-web/cgi/beclear.cgi +++ b/abs/core/supplemental-web/cgi/beclear.cgi @@ -1,4 +1,4 @@ #!/bin/bash /usr/bin/mythbackend --clearcache -MESSAGE="settings cache is cleared " +MESSAGE="MythBackend Settings Cache 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 index e09e42b..a7a49b2 100644 --- a/abs/core/supplemental-web/cgi/bestart.cgi +++ b/abs/core/supplemental-web/cgi/bestart.cgi @@ -1,10 +1,13 @@ #!/bin/bash -# MESSAGE="Trying to start `hostname` B.E." -# /usr/bin/func "*" call msg display "$MESSAGE" & +#MESSAGE="Starting `hostname` MythBackend" +#/usr/bin/func "*" call msg display "$MESSAGE" & -sudo /sbin/sv start mythbackend - -MESSAGE="`hostname` B.E. started" -/usr/bin/func "*" call msg display "$MESSAGE" & +svresult=`sudo /sbin/sv start mythbackend` +if [[ $svresult == *"run: "* ]]; then + MESSAGE="`hostname` MythBackend Started" +else + MESSAGE="`hostname` MythBackend didn't Start\nCheck MythBackend Log" +fi +/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 c9d7fad..2d31904 100644 --- a/abs/core/supplemental-web/cgi/bestop.cgi +++ b/abs/core/supplemental-web/cgi/bestop.cgi @@ -1,12 +1,13 @@ #!/bin/bash -MESSAGE="Trying to stop `hostname` B.E." -/usr/bin/func "*" call msg display "$MESSAGE" & - -sudo /sbin/sv stop mythbackend - -MESSAGE="`hostname` B.E. stopped" +MESSAGE="Stopping `hostname` MythBackend..." /usr/bin/func "*" call msg display "$MESSAGE" & +svresult=`sudo /sbin/sv stop mythbackend` +if [[ $svresult == *"down: "* ]]; then + MESSAGE="`hostname` MythBackend Stopped" +else + MESSAGE="`hostname` MythBackend didn't Stop" +fi - +/usr/bin/func "*" call msg display "$MESSAGE" & |