#!/bin/bash# Stops and restarts the Mongrel web server.cd`dirname$0`cd..
# XXX Include path for dodgy version of daemonize packageif[-elog/mongrel.pid]thenruby-I/usr/lib/ruby//usr/bin/mongrel_railsstop
sleep2s
ruby-I/usr/lib/ruby//usr/bin/mongrel_railsstart-d
elseruby-I/usr/lib/ruby//usr/bin/mongrel_railsstart-d
fi