I suspect you would not be allowed to do this on dreamhost. Most all 'servers' are consistant processes, and there by are strictly not allowed. Any thing that runs contsantly on the server, regardless of web site visitors or not, is a consistant process.
I just glanced over the requirements at their website, and it seems that this the server is a consistant process. So enless you want to go dedicated you're out of luck.