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

Suggestion: add a short HowTo notify via email for noobs #265

Open
zilexa opened this issue Mar 3, 2023 · 2 comments
Open

Suggestion: add a short HowTo notify via email for noobs #265

zilexa opened this issue Mar 3, 2023 · 2 comments
Labels

Comments

@zilexa
Copy link

zilexa commented Mar 3, 2023

I am no developer or expert, but I would like to run needrestart as part of a monthly bash script run via cron.
I see there is already functionality in there that allows emails to be sent.
On my system (Manjaro Gnome), the system can already sent emails using mail -s "mail subject here" default.

But I cannot figure out how to run needrestart in such a way that it will sent me an email if the system would need a restart after performing updates?

The commandline options don't mention anything, even though there is a "600-mail" script.
The config file doesn't show anything useful about this.
The readme.needrestart doesn't seen to add any useful info about how to make it sent emails.
I am sure its clear for experts how to do it, because most likely this is all part of some sort of methodology. But I am in the dark.

If anyone would be willing to shine a little light, that would be appreciated.

@zilexa zilexa changed the title Suggestion: add a short HowTo fo noobs Suggestion: add a short HowTo for noobs Mar 3, 2023
@zilexa zilexa changed the title Suggestion: add a short HowTo for noobs Suggestion: add a short HowTo notify via email for noobs Mar 3, 2023
@liske liske added the question label May 26, 2023
@liske
Copy link
Owner

liske commented May 26, 2023

Please be aware of the description in notify.d/README.md (regarding 600-mail):

Files located in /etc/needrestart/notify.d are used to notify running
user sessions about usage of outdated libraries.

Needrestart has no built-in notification function for system services.

@zilexa
Copy link
Author

zilexa commented May 28, 2023

My point is the documentation is waaay too limited to make sense for non-developer new users.

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

No branches or pull requests

2 participants