Sha256: dc662dda1078e74c2bf733d5477e5989b42acacaad3bf434ec15b79c4ef6fd7c
Contents?: true
Size: 399 Bytes
Versions: 52
Compression:
Stored size: 399 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') { puts "received TERM" # simulate the slow stopping sleep(10) exit } loop do puts 'ping from myserver.rb!' sleep(3) end
Version data entries
52 entries across 52 versions & 5 rubygems