Ryan, after doing some research it appears to me that the part of your script you posted isn't in its entirety. Is this part of a larger bash script? how is this implemented? I'm still a bit new to linux so learning as Igo.
<br><br>Thanks,<br><br><span style="font-weight: bold; font-style: italic;">stop() {</span><br style="font-weight: bold; font-style: italic;"><span style="font-weight: bold; font-style: italic;"> echo -n "Stopping ${MBE_PROG}: "
</span><br style="font-weight: bold; font-style: italic;"><span style="font-weight: bold; font-style: italic;"> killproc ${MBE_LOCATION}${MBE_PROG}</span><br style="font-weight: bold; font-style: italic;"><span style="font-weight: bold; font-style: italic;">
RETVAL=$?</span><br style="font-weight: bold; font-style: italic;"><span style="font-weight: bold; font-style: italic;"> echo</span><br style="font-weight: bold; font-style: italic;"><span style="font-weight: bold; font-style: italic;">
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/${MBE_PROG}</span><br style="font-weight: bold; font-style: italic;"><span style="font-weight: bold; font-style: italic;"> echo -n "Stopping Mythtranscode"
</span><br style="font-weight: bold; font-style: italic;"><span style="font-weight: bold; font-style: italic;"> killproc ${MBE_DIR}mythtranscode</span><br style="font-weight: bold; font-style: italic;"><span style="font-weight: bold; font-style: italic;">
RETVAL=$?</span><br style="font-weight: bold; font-style: italic;"><span style="font-weight: bold; font-style: italic;"> [ $RETVAL -eq 0 ]</span><br style="font-weight: bold; font-style: italic;"><span style="font-weight: bold; font-style: italic;">
echo</span><br style="font-weight: bold; font-style: italic;"><span style="font-weight: bold; font-style: italic;"> echo -n "Stopping Mythcommflag"</span><br style="font-weight: bold; font-style: italic;">
<span style="font-weight: bold; font-style: italic;"> killproc ${MBE_DIR}mythcommflag</span><br style="font-weight: bold; font-style: italic;"><span style="font-weight: bold; font-style: italic;"> RETVAL=$?</span>
<br style="font-weight: bold; font-style: italic;"><span style="font-weight: bold; font-style: italic;"> [ $RETVAL -eq 0 ]</span><br style="font-weight: bold; font-style: italic;"><span style="font-weight: bold; font-style: italic;">
echo</span><br style="font-weight: bold; font-style: italic;"><br style="font-weight: bold; font-style: italic;"><span style="font-weight: bold; font-style: italic;"> return $RETVAL</span><br style="font-weight: bold; font-style: italic;">
<span style="font-weight: bold; font-style: italic;">}</span><br style="font-weight: bold; font-style: italic;"><br style="font-weight: bold; font-style: italic;"><span style="font-weight: bold; font-style: italic;">restart() {
</span><br style="font-weight: bold; font-style: italic;"><span style="font-weight: bold; font-style: italic;"> stop</span><br style="font-weight: bold; font-style: italic;"><span style="font-weight: bold; font-style: italic;">
[ -e /var/lock/subsys/${MBE_PROG} ] && rm -f</span><br style="font-weight: bold; font-style: italic;"><span style="font-weight: bold; font-style: italic;">/var/lock/subsys/${MBE_PROG}</span><br style="font-weight: bold; font-style: italic;">
<span style="font-weight: bold; font-style: italic;"> start</span><br style="font-weight: bold; font-style: italic;"><span style="font-weight: bold; font-style: italic;">}</span><br style="font-weight: bold; font-style: italic;">
<br style="font-weight: bold; font-style: italic;"><br style="font-weight: bold; font-style: italic;"><br>