aboutsummaryrefslogtreecommitdiffstats
path: root/script/restart-mongrel
diff options
context:
space:
mode:
authorfrancis <francis>2008-04-10 19:35:15 +0000
committerfrancis <francis>2008-04-10 19:35:15 +0000
commitffd092f35d2295185754b94423d989d027a972df (patch)
treea342c4ef6ec4bc82ed147dc1017bcb6b911cd86a /script/restart-mongrel
parent812bf1841a46facc1edef893ee6c96f81393c81f (diff)
Script for mongrel deploy.
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