Shellflip Versions Save

Graceful process restarts in Rust

v2.1.0

5 months ago

What's Changed

  • Kill child process if parent state cannot be delivered

v2.0.0

1 year ago

What's Changed

  • Support setting environment variables in the new process, via environment in RestartConfig.
  • Add state transfer from old process to new, via the new lifecycle_handler in RestartConfig.
  • The restart task returns the child process as a std::process::Child on successful restart.

Migration

Users of v1.0.0 can migrate by:

  • partially initialising RestartConfig, now that it implements Default
  • ignoring or using the return value from the spawned restart task