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

monit: wrap exec in double quotes to allow arguments #8085

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

Conversation

uvNikita
Copy link

Currently, if you want to execute command with arguments, you have to create a script somewhere on filesystem, then specify path to it in the Execute parameter.
With this patch, it's possible to pass command line arguments as part of Execute string, e.g. /sbin/ifconfig wg0 down.

From monit documentation:

EXEC can be used to execute an arbitrary program and send an alert. If you choose this action you must state the program to be executed and if the program requires arguments you must enclose the program and its arguments in a quoted string

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

Successfully merging this pull request may close these issues.

1 participant