Posted: Wed May 05, 2021 7:28 pm |
|
https://ostechnix.com/a-beginners-guide-to-cron-jobs
They have a builder tool to make it super ez.
Can have it run on restart too.
*/5 * * * * <command> <<5 minute check.
@restart <command> <<If server crashes/restarts it will run on reboot.
#1 is valid
it would keep bring it up lol
#2 can make it run any command in the job.
Depending on how u get notified atm, could include in the script to send an email or log fails to a file.
few diff tools u can install on linux box's
ssmtp lets u put it in the script, so if it hits the else it would run something like
sendmail
Lordlava@gmail.com < Emailmessage.txt