Commit 72cc173d authored by UltimateByte's avatar UltimateByte Committed by GitHub
Browse files

pre & post action adjustments

parent 6d041359
...@@ -12,9 +12,9 @@ allowedname="httpd" # Which process should we get on speccified port ...@@ -12,9 +12,9 @@ allowedname="httpd" # Which process should we get on speccified port
allowedpath="/usr/sbin/httpd" # Which is the correct path to run it allowedpath="/usr/sbin/httpd" # Which is the correct path to run it
allowedusers="root;" # Which is the correct user to run it (separate with ; ) allowedusers="root;" # Which is the correct user to run it (separate with ; )
preaction="service ${allowedname} restart" # Run a custom action if a problem is found # preaction="service ${allowedname} restart" # Run a custom action if a problem is found
postaction="" # Run a custom action after a problem was found and processes killed postaction="service ${allowedname} restart" # Run a custom action after a problem was found and processes killed
downaction="service ${allowedname} start" downaction="service ${allowedname} restart"
logdir="/root" # Log directory (don't end with /) logdir="/root" # Log directory (don't end with /)
mailalert="yes" # Wether to send a mail alert or not (yes/no) mailalert="yes" # Wether to send a mail alert or not (yes/no)
...@@ -204,7 +204,6 @@ fn_action(){ ...@@ -204,7 +204,6 @@ fn_action(){
fn_mail_alert fn_mail_alert
else else
fn_logecho "[OK] The process on port ${portcheck} meets requirements" fn_logecho "[OK] The process on port ${portcheck} meets requirements"
fn_postaction
exit exit
fi fi
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment