File: myserver_exiting.rb

package info (click to toggle)
ruby-daemons 1.4.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 388 kB
  • sloc: ruby: 2,133; makefile: 7
file content (8 lines) | stat: -rw-r--r-- 127 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
loop do
  puts 'ping from myserver.rb!'
  puts 'this example server will exit in 3 seconds...'

  sleep(3)

  Process.exit
end