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

auto-restart.sh - Enable Email Alerts #984

Merged
merged 1 commit into from
Dec 14, 2024

Conversation

decoy4fun
Copy link
Contributor

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.

Adds email alert functionality to auto-restart.sh

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
@robotastic
Copy link
Owner

This is cool! thanks for sharing it

@robotastic robotastic merged commit 6e1f7e6 into robotastic:master Dec 14, 2024
1 check passed
@decoy4fun decoy4fun deleted the email_alerts branch December 14, 2024 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants