Sha256: 2e120279e551b0602969b2b229fa14d35e48195c06a956680ecf7c93cc13c29b
Contents?: true
Size: 514 Bytes
Versions: 31
Compression:
Stored size: 514 Bytes
Contents
# encoding: utf-8 module <%=config[:constant_name]%> class Server def initialize $log.info("<%=config[:name]%>:boot #{RUBY_DESCRIPTION}") $log.info("<%=config[:name]%>:boot", { env: Env.mode, }) Signal.register_shutdown_handler { shutdown } end def shutdown $log.info("<%=config[:name]%>:server", shutdown: :complete) exit(0) rescue => e $log.exception(e, "shutdown failed") exit(-1) end def run sleep end end end
Version data entries
31 entries across 31 versions & 1 rubygems