There are several ways to do this, but I\'m not sure which one of them is the best.
Here\'s what I can think of:
Do the old PID file trick.
HTH
cheers,
Rob