#!/usr/bin/env ruby require "racecar" require "racecar/cli" begin Racecar::Cli.main(ARGV) rescue SignalException => e # We might receive SIGTERM before our signal handler is installed. if Signal.signame(e.signo) == "TERM" exit(0) else raise end rescue exit(1) else exit(0) end