Sha256: 72b3dfd2e1e012d8716351c4582c86e52b6490719454e28e992090594a2627a5

Contents?: true

Size: 233 Bytes

Versions: 2

Compression:

Stored size: 233 Bytes

Contents

exiting = false
trap("TERM") { exiting = true }
trap("INT") { exiting = true }
trap("HUP") { puts "HUP HOLLAND HUP" }

$PROGRAM_NAME = "test_daemon.rb daemon_test worker##{ENV["DAEMON_WORKER_NUMBER"]}"

until exiting
  sleep 0.1
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
daemonic-0.0.2 test/test_daemon.rb
daemonic-0.0.1 test/test_daemon.rb