    # File lib/mongrel/configurator.rb, line 360
        def setup_signals(options={})
          ops = resolve_defaults(options)

          # forced shutdown, even if previously restarted (actually just like TERM but for CTRL-C)
          trap("INT") { log "INT signal received."; stop(false) }

          # clean up the pid file always
          at_exit { remove_pid_file }

          if RUBY_PLATFORM !~ /mswin/
            # graceful shutdown
            trap("TERM") { log "TERM signal received."; stop }
            trap("USR1") { log "USR1 received, toggling $mongrel_debug_client to #{!$mongrel_debug_client}"; $mongrel_debug_client = !$mongrel_debug_client }
            # restart
            trap("USR2") { log "USR2 signal received."; stop(true) }

            log "Signals ready.  TERM => stop.  USR2 => restart.  INT => stop (no restart)."
          else
            log "Signals ready.  INT => stop (no restart)."
          end
        end