about summary refs log tree commit homepage
path: root/bin
diff options
context:
space:
mode:
authorluislavena <luislavena@19e92222-5c0b-0410-8929-a290d50e31e9>2008-03-31 08:19:14 +0000
committerluislavena <luislavena@19e92222-5c0b-0410-8929-a290d50e31e9>2008-03-31 08:19:14 +0000
commit9ed23d6b1be6f24a5ac43ff77db20ac77dbf176d (patch)
tree246bdd8eb5fd8f18443c9bcbc177848c4ecdbb66 /bin
parenteda1ea00904dcf4b4e7ed533b327a842713ac11a (diff)
downloadunicorn-9ed23d6b1be6f24a5ac43ff77db20ac77dbf176d.tar.gz
Added shebang to mongrel_rails (makes latest RubyGem happier).


git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/branches/stable_1-2@1000 19e92222-5c0b-0410-8929-a290d50e31e9
Diffstat (limited to 'bin')
-rw-r--r--bin/mongrel_rails4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/mongrel_rails b/bin/mongrel_rails
index c32b818..5d17466 100644
--- a/bin/mongrel_rails
+++ b/bin/mongrel_rails
@@ -1,3 +1,5 @@
+#!/usr/bin/env ruby
+#
 # Copyright (c) 2005 Zed A. Shaw
 # You can redistribute it and/or modify it under the same terms as Ruby.
 #
@@ -137,7 +139,7 @@ module Mongrel
       config.join
 
       if config.needs_restart
-        if RUBY_PLATFORM !~ /mswin/
+        if RUBY_PLATFORM !~ /djgpp|(cyg|ms|bcc)win|mingw/
           cmd = "ruby #{__FILE__} start #{original_args.join(' ')}"
           config.log "Restarting with arguments:  #{cmd}"
           config.stop(false, true)