diff options
| author | Britney Fransen <brfransen@gmail.com> | 2013-12-26 20:13:40 (GMT) |
|---|---|---|
| committer | Britney Fransen <brfransen@gmail.com> | 2013-12-26 20:13:40 (GMT) |
| commit | af515b99f692bcf1f0af57aabe8f7c1a950b32c5 (patch) | |
| tree | d2cbd0bd7a159adac8ebc749e6c76d005ad4a42e /abs/core/supplemental-web/cgi/bestart.cgi | |
| parent | 45f667c9512475b4cb5c5290557dea854d056634 (diff) | |
| parent | 816f6f419c662354f4224f8d82387fc27693b0fb (diff) | |
| download | linhes_pkgbuild-af515b99f692bcf1f0af57aabe8f7c1a950b32c5.zip linhes_pkgbuild-af515b99f692bcf1f0af57aabe8f7c1a950b32c5.tar.gz linhes_pkgbuild-af515b99f692bcf1f0af57aabe8f7c1a950b32c5.tar.bz2 | |
Merge branch 'testing'
Diffstat (limited to 'abs/core/supplemental-web/cgi/bestart.cgi')
| -rw-r--r-- | abs/core/supplemental-web/cgi/bestart.cgi | 15 |
1 files changed, 9 insertions, 6 deletions
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" & |
