I have no experience with Mongrel, but there is a number of ways for you to leave the command running.
You can use:
Code:
nohup start-stop-daemon -S -d . -x script/server -b -- -p 8080 &
That will through it on the background even when you close the ssh session.
Another one is install screen and run this:
Code:
screen -dmS $NAME start-stop-daemon -S -d . -x script/server -b -- -p 8080
Where $NAME is the name of the session.
Then if you want to end the session run:
And you can use exit to ctrl+c to kill it and then exit to close the session.