Changeset 1000

Show
Ignore:
Timestamp:
03/31/08 03:19:14 (5 months ago)
Author:
luislavena
Message:

Somehow the RUBY_PLATFORM regexp got lost between branches... great!
Added shebang to mongrel_rails (makes latest RubyGem? happier).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/stable_1-2

    • Property bzr:revision-id:v3-trunk0 changed from
      814 luislavena@gmail.com-20080331074345-8r7ghwi05bwwqz7f
      to
      814 luislavena@gmail.com-20080331074345-8r7ghwi05bwwqz7f
      815 luislavena@gmail.com-20080331075048-t48wb12km03z1k7d
    • Property bzr:revision-info changed from
      timestamp: 2008-03-31 04:43:45.765000105 -0300
      committer: Luis Lavena <luislavena@gmail.com>
      properties:
      branch-nick: stable_1-2
      to
      timestamp: 2008-03-31 04:50:48.828000069 -0300
      committer: Luis Lavena <luislavena@gmail.com>
      properties:
      branch-nick: stable_1-2
  • branches/stable_1-2/bin/mongrel_rails

    r995 r1000  
     1#!/usr/bin/env ruby 
     2# 
    13# Copyright (c) 2005 Zed A. Shaw 
    24# You can redistribute it and/or modify it under the same terms as Ruby. 
     
    138140 
    139141      if config.needs_restart 
    140         if RUBY_PLATFORM !~ /mswin
     142        if RUBY_PLATFORM !~ /djgpp|(cyg|ms|bcc)win|mingw
    141143          cmd = "ruby #{__FILE__} start #{original_args.join(' ')}" 
    142144          config.log "Restarting with arguments:  #{cmd}" 
  • branches/stable_1-2/lib/mongrel/configurator.rb

    r813 r1000  
    8282    # Writes the PID file if we're not on Windows. 
    8383    def write_pid_file 
    84       if RUBY_PLATFORM !~ /mswin
     84      if RUBY_PLATFORM !~ /djgpp|(cyg|ms|bcc)win|mingw
    8585        log "Writing PID file to #{@pid_file}" 
    8686        open(@pid_file,"w") {|f| f.write(Process.pid) } 
     
    186186      ops = resolve_defaults(options) 
    187187      # save this for later since daemonize will hose it 
    188       if RUBY_PLATFORM !~ /mswin
     188      if RUBY_PLATFORM !~ /djgpp|(cyg|ms|bcc)win|mingw
    189189        require 'daemons/daemonize' 
    190190 
     
    367367      at_exit { remove_pid_file } 
    368368 
    369       if RUBY_PLATFORM !~ /mswin
     369      if RUBY_PLATFORM !~ /djgpp|(cyg|ms|bcc)win|mingw
    370370        # graceful shutdown 
    371371        trap("TERM") { log "TERM signal received."; stop } 
  • branches/stable_1-2/lib/mongrel/rails.rb

    r685 r1000  
    174174        setup_signals(options) 
    175175 
    176         if RUBY_PLATFORM !~ /mswin
     176        if RUBY_PLATFORM !~ /djgpp|(cyg|ms|bcc)win|mingw
    177177          # rails reload 
    178178          trap("HUP") { log "HUP signal received."; reload!          }