aboutsummaryrefslogtreecommitdiffstats
path: root/script/restart-mongrel
diff options
context:
space:
mode:
Diffstat (limited to 'script/restart-mongrel')
-rwxr-xr-xscript/restart-mongrel9
1 files changed, 9 insertions, 0 deletions
diff --git a/script/restart-mongrel b/script/restart-mongrel
new file mode 100755
index 000000000..a5dc2431b
--- /dev/null
+++ b/script/restart-mongrel
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+# Stops and restarts the Mongrel web server.
+
+cd `dirname $0`
+cd ..
+# XXX Include path for dodgy version of daemonize package
+ruby -I/usr/lib/ruby/ /usr/bin/mongrel_rails stop
+ruby -I/usr/lib/ruby/ /usr/bin/mongrel_rails start -d