#!/bin/bash PROG="mythfrontend" if [[ X`pgrep ${PROG}`X != XX ]] then pkill -9 ${PROG} else nohup ${PROG} & fi