blob: a7a49b267132ae6324cf41c481b9c9155cecd1e8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/bin/bash
#MESSAGE="Starting `hostname` MythBackend"
#/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" &
|