aboutsummaryrefslogtreecommitdiffstats
path: root/script/restart-mongrel
diff options
context:
space:
mode:
Diffstat (limited to 'script/restart-mongrel')
-rwxr-xr-xscript/restart-mongrel4
1 files changed, 3 insertions, 1 deletions
diff --git a/script/restart-mongrel b/script/restart-mongrel
index 6fd47d32b..691baff9e 100755
--- a/script/restart-mongrel
+++ b/script/restart-mongrel
@@ -7,7 +7,9 @@ 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
+ ruby -I/usr/lib/ruby/ /usr/bin/mongrel_rails stop
+ sleep 1s
+ ruby -I/usr/lib/ruby/ /usr/bin/mongrel_rails start -d
else
ruby -I/usr/lib/ruby/ /usr/bin/mongrel_rails start -d
fi