The longest the graceful stop may take before the process exits
anyway: some stop steps (a hung lstat or git call) have no timeout.
Optionalexitprocess.exit (tests).
The app's logger, once it exists.
OptionalnowThe clock (tests).
The state directory (the record goes there).
The app's graceful stop.
What
createProcessRestarterneeds from the app.