#!/usr/bin/env ruby require 'syslogstash' begin Syslogstash.new(ENV).start rescue ServiceSkeleton::Error::InvalidEnvironmentError => ex $stderr.puts "Configuration error: #{ex.message}" exit 1 end