#!/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" &