class Puma::Launcher
def integrate_with_systemd
def integrate_with_systemd return unless ENV["NOTIFY_SOCKET"] begin require 'puma/systemd' rescue LoadError log "Systemd integration failed. It looks like you're trying to use systemd notify but don't have sd_notify gem installed" return end log "* Enabling systemd notification integration" systemd = Systemd.new(@events) systemd.hook_events systemd.start_watchdog end