File: ticker

package info (click to toggle)
ruby-foreman 0.90.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 584 kB
  • sloc: ruby: 2,020; sh: 88; makefile: 8
file content (14 lines) | stat: -rwxr-xr-x 237 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env ruby

$stdout.sync = true

%w( SIGINT SIGTERM ).each do |signal|
  trap(signal) do
    puts "received #{signal} but i'm ignoring it!"
  end
end

while true
  puts "tick: #{ARGV.inspect} -- FOO:#{ENV["FOO"]}"
  sleep 1
end