Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for signal "observers" #207

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on May 12, 2020

  1. Add support for signal "observers"

    - Add an optional third parameter to -r/--rewrite (-r s:r[:observer]) that specifies a script/executable that should be called when signal s is received (whether or not it is forwarded).
    - The observer may be specified as a full path or PATH will be searched.
    - The observer is called without any arguments, but the signal and replacement are provided by the DUMB_INIT_SIGNUM and DUMB_INIT_REPLACEMENT_SIGNUM environment variables, respectively.
    - The intention is that the observer has no impact on dumb-init or the child process(es), for example if it exits with failure. It is simply an observer.
    jhriggs committed May 12, 2020
    Configuration menu
    Copy the full SHA
    1534376 View commit details
    Browse the repository at this point in the history