script/backgroundrb start: it should check the for the pid file and process before blindly overwriting the pid with
the new process
script/backgroundrb stop: will spit out ugly exceptions if the pid file has already been deleted.
For what it's worth, I rewrote the backgroundrb to look like the attachment. It may still have a few bugs in it, but
it works much better with Monit than the original script, since it won't start a new backgroundrb if one is already
running.
|