lib/puma/plugin/systemd.rb
# Update systemd status event second or so
Update systemd status event second or so
Update systemd status event second or so
def status_loop
    loop do
      @launcher.events.debug "systemd: notify status"
      begin
        @systemd.notify_status(status.to_s)
      rescue
        @launcher.events.error "! systemd: notify status failed:\n  #{$!.to_s}\n  #{$!.backtrace.join("\n    ")}"
      ensure
        sleep 1
      end
    end
  end
def status_loop loop do @launcher . events . debug "systemd: notify status" begin @systemd . notify_status ( status . to_s ) rescue @launcher . events . error "! systemd: notify status failed:\n  #{$!.to_s}\n  #{$!.backtrace.join("\n    ")}" ensure sleep 1 end end end
Update systemd status event second or so
Update systemd status event second or so