Sha256: e36c160103b63b79363363fd84b6878a965e8f7d62f30c95597f14292777d237
Contents?: true
Size: 386 Bytes
Versions: 58
Compression:
Stored size: 386 Bytes
Contents
#!/usr/bin/env ruby # This is myserver.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" loop do puts 'hanging!' sleep(3) end } loop do puts 'ping from myserver.rb!' sleep(3) end
Version data entries
58 entries across 58 versions & 5 rubygems