Skip to content

Conversation

@mdavidsaver
Copy link
Contributor

Add --grace-period flag. Combines with --killsig to allow time for a graceful child shutdown during procServ shutdown.

By default, no change. If a killsig other than SIGKILL is selected, along with a non-zero grace period, then when procServ receives SIGTERM:

  1. Send killsig to child
  2. wait up to grace-period
  3. If child remains, then issue SIGKILL
  4. procServ exit

There are some whitespace changes in a separate commit.

Combines with --killsig to allow time for a graceful child shutdown
during procServ shutdown.

By default, no change.

If a killsig other than SIGKILL is selected, along with a non-zero
grace period, then when procServ receives SIGTERM:

1. Send killsig to child
2. wait up to grace-period
3. If child remains, then issue SIGKILL
4. procServ exit
@mdavidsaver
Copy link
Contributor Author

The basic logic is to add another variable to main() (stopAt) which is set to a non-zero value when a graceful shutdown is in-progress.

Documentation update waiting on #68.

@mdavidsaver
Copy link
Contributor Author

cf. epics-base/epics-base#670

@ralphlange
Copy link
Owner

Looks good to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants