File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 7272# Disable automatic tagging of the service.
7373tag ''
7474
75- # Before performing a hot restart (not on phased restarts), send another watchdog message
76- # TODO: Consider `on_booted` as well, which currently breaks with Pumactl.
77- on_restart do
75+ # Before performing a hot restart (not on phased restarts) and directly after booting, send another watchdog message
76+ def notify_watchdog
7877 require 'puma/sd_notify'
7978 Puma ::SdNotify . watchdog
8079end
80+ before_restart { notify_watchdog }
81+ after_booted { notify_watchdog }
8182
8283# Note on Phased Restarts:
8384# - Phased Restarts are only supported in cluster mode with multiple workers (i.e., not in development).
8485# - The Puma binary won't be upgraded on phased restarts, but since we have the unattended-upgrades, this is not a major issue.
85- # - See https://github.com/casperisfine /puma/blob/HEAD/docs/restart.md.
86+ # - See https://github.com/puma /puma/blob/HEAD/docs/restart.md.
You can’t perform that action at this time.
0 commit comments