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;"> &nbsp; &nbsp; &nbsp; &nbsp;echo -n &quot;Stopping ${MBE_PROG}: &quot;
</span><br style="font-weight: bold; font-style: italic;"><span style="font-weight: bold; font-style: italic;"> &nbsp; &nbsp; &nbsp; &nbsp;killproc ${MBE_LOCATION}${MBE_PROG}</span><br style="font-weight: bold; font-style: italic;"><span style="font-weight: bold; font-style: italic;">
 &nbsp; &nbsp; &nbsp; &nbsp;RETVAL=$?</span><br style="font-weight: bold; font-style: italic;"><span style="font-weight: bold; font-style: italic;"> &nbsp; &nbsp; &nbsp; &nbsp;echo</span><br style="font-weight: bold; font-style: italic;"><span style="font-weight: bold; font-style: italic;">
 &nbsp; &nbsp; &nbsp; &nbsp;[ $RETVAL -eq 0 ] &amp;&amp; rm -f /var/lock/subsys/${MBE_PROG}</span><br style="font-weight: bold; font-style: italic;"><span style="font-weight: bold; font-style: italic;"> &nbsp; &nbsp; &nbsp; &nbsp;echo -n &quot;Stopping Mythtranscode&quot;
</span><br style="font-weight: bold; font-style: italic;"><span style="font-weight: bold; font-style: italic;"> &nbsp; &nbsp; &nbsp; &nbsp;killproc ${MBE_DIR}mythtranscode</span><br style="font-weight: bold; font-style: italic;"><span style="font-weight: bold; font-style: italic;">
 &nbsp; &nbsp; &nbsp; &nbsp;RETVAL=$?</span><br style="font-weight: bold; font-style: italic;"><span style="font-weight: bold; font-style: italic;"> &nbsp; &nbsp; &nbsp; &nbsp;[ $RETVAL -eq 0 ]</span><br style="font-weight: bold; font-style: italic;"><span style="font-weight: bold; font-style: italic;">
 &nbsp; &nbsp; &nbsp; &nbsp;echo</span><br style="font-weight: bold; font-style: italic;"><span style="font-weight: bold; font-style: italic;"> &nbsp; &nbsp; &nbsp; &nbsp;echo -n &quot;Stopping Mythcommflag&quot;</span><br style="font-weight: bold; font-style: italic;">
<span style="font-weight: bold; font-style: italic;"> &nbsp; &nbsp; &nbsp; &nbsp;killproc ${MBE_DIR}mythcommflag</span><br style="font-weight: bold; font-style: italic;"><span style="font-weight: bold; font-style: italic;"> &nbsp; &nbsp; &nbsp; &nbsp;RETVAL=$?</span>
<br style="font-weight: bold; font-style: italic;"><span style="font-weight: bold; font-style: italic;"> &nbsp; &nbsp; &nbsp; &nbsp;[ $RETVAL -eq 0 ]</span><br style="font-weight: bold; font-style: italic;"><span style="font-weight: bold; font-style: italic;">
 &nbsp; &nbsp; &nbsp; &nbsp;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;"> &nbsp; &nbsp; &nbsp; &nbsp;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;"> &nbsp; &nbsp; &nbsp; &nbsp;stop</span><br style="font-weight: bold; font-style: italic;"><span style="font-weight: bold; font-style: italic;">
 &nbsp; &nbsp; &nbsp; &nbsp;[ -e /var/lock/subsys/${MBE_PROG} ] &amp;&amp; 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;"> &nbsp; &nbsp; &nbsp; &nbsp;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>