>I think you might need a pexp variable, process grep expression to be used b >y pgrep to determine if the service is running.
I've tried using pexp, the result is the same; I can start the script and receive the 'tmux(ok)' message, but upon running the '/etc/rc.d/tmux stop' I receive no messages and the script silently exits.