summaryrefslogtreecommitdiffstats
path: root/abs/core/supplemental-web/cgi/bestop.cgi
blob: 2d319044aebe82750233357b5ff13fbba55dc4d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash
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" &