auto-restart.sh - Enable Email Alerts #984
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This adds crash email alert functionality to auto-restart.sh. Some may find find alerts to be spammy which is why they are disabled by default. This not only alerts you to Trunk-Recorder having issues, but also locates and automatically attaches the latest log file (if available) so you can figure out what happened.
Emails are disabled by default so if a user does not want emails, nothing changes. They can copy the file into their working directory normally and they are done.
If they want email alerts every time Trunk-Recorder crashes/fails to restart, those can be enabled and configured as needed.
Sleep time has been updated to 120 by default to reduce alerts/spam.
Bulk of the work was done with the help of ChatGPT but I spent quite a bit of time fine tuning and adjusting things. This is something I wanted to share as I find it useful but no offense taken if we decide not to merge.