#!/usr/bin/env ruby # frozen_string_literal: true require "bundler/setup" require "shatter" $stdout.sync = true require_relative "../config/environment" begin Shatter::Service::Base.init rescue Interrupt => e Shatter::Service::Base.close rescue SignalException => e Shatter::Service::Base.close end