diff options
author | zedshaw <zedshaw@19e92222-5c0b-0410-8929-a290d50e31e9> | 2006-05-23 03:58:37 +0000 |
---|---|---|
committer | zedshaw <zedshaw@19e92222-5c0b-0410-8929-a290d50e31e9> | 2006-05-23 03:58:37 +0000 |
commit | 25f477099bc025e95e423a713c9f5e3b29b3d4e5 (patch) | |
tree | b284ac466828c63d0ca7748e4f40f707dba70e87 /bin | |
parent | 4905d82fc0f96a79f2d3a5d9eaf93c1112684d7c (diff) | |
download | unicorn-25f477099bc025e95e423a713c9f5e3b29b3d4e5.tar.gz |
git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@206 19e92222-5c0b-0410-8929-a290d50e31e9
Diffstat (limited to 'bin')
-rw-r--r-- | bin/mongrel_rails | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/bin/mongrel_rails b/bin/mongrel_rails index b6ba92f..4886e6e 100644 --- a/bin/mongrel_rails +++ b/bin/mongrel_rails @@ -142,8 +142,13 @@ class Start < GemPlugin::Plugin "/commands" config.run config.log "Mongrel available at #{settings[:host]}:#{settings[:port]}" - config.log "Use CTRL-C to stop." if not @daemon - config.write_pid_file + + if not @daemon + config.log "Use CTRL-C to stop." + else + config.write_pid_file + end + config.join if config.needs_restart |