aboutsummaryrefslogtreecommitdiffstats
path: root/script/restart-mongrel
blob: 6fd47d32ba2dbcda796ac3048af9befc61ef5453 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

# Stops and restarts the Mongrel web server.

cd `dirname $0`
cd ..
# XXX Include path for dodgy version of daemonize package
if [ -e log/mongrel.pid ]
then
    ruby -I/usr/lib/ruby/ /usr/bin/mongrel_rails restart
else
    ruby -I/usr/lib/ruby/ /usr/bin/mongrel_rails start -d
fi