Sha256: 61ea0e381aed9a8618743658311f9725103f109d8f12b50b11455b98535a39bb
Contents?: true
Size: 397 Bytes
Versions: 15
Compression:
Stored size: 397 Bytes
Contents
#!/usr/bin/env ruby # This is myserver_slowstop.rb, an example server that is to be controlled by daemons # and that does nothing really useful at the moment. # # Don't run this script by yourself, it can be controlled by the ctrl*.rb scripts. trap('TERM') do puts 'received TERM' # simulate the slow stopping sleep(10) exit end loop do puts 'ping from myserver.rb!' sleep(3) end
Version data entries
15 entries across 13 versions & 4 rubygems