Method: StompServer::Run#stop

Defined in:
lib/stomp_server_ng.rb

#stop(pidfile) ⇒ Object

Server stop on SIGINT or SIGTERM



366
367
368
369
370
371
372
# File 'lib/stomp_server_ng.rb', line 366

def stop(pidfile)
  @queue_manager.stop("KILL_ISSUED")
  @@log.debug "Stompserver #{StompServer::VERSION} shutting down"
  STDOUT.flush
  EventMachine::stop_event_loop
  File.delete(pidfile)
end