-
-
Notifications
You must be signed in to change notification settings - Fork 732
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
Added new global configuration directive shutdown_script. #1
Conversation
Example: Run /bin/true on daemon shutdown. shutdown_script "/bin/true arg1 arg2"
shutdown_script MUST not be called from signal handler. Would be more appropriated to run script at stop_keepalived(void) level so that waitpid (VRRP & CHECK) have completed and child are stopped. You can even imagine to register multiple shutdown_script for each subsystem to be called in each subsystem: I mean : Then all subsystems will have the ability to run script in their own "stop_" directive. |
Update configure in line with configure.in - request #1
Add DBus functionality to VRRP
This patch adds new global configuration directive "shutdown_script". Using this directive one can, for example, easily shutdown any services started by notitfy_* directive scripts when daemon is shut down.
Example: Run /bin/true on daemon shutdown.
shutdown_script "/bin/true arg1 arg2"