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

send notifications for timed shutdowns before 10 minute mark #14731

Open
mbiebl opened this issue Feb 1, 2020 · 0 comments
Open

send notifications for timed shutdowns before 10 minute mark #14731

mbiebl opened this issue Feb 1, 2020 · 0 comments
Labels
login RFE 🎁 Request for Enhancement, i.e. a feature request

Comments

@mbiebl
Copy link
Contributor

mbiebl commented Feb 1, 2020

Originally filed as downstream bug report: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=884994

It appears that for timed shutdowns we only start sendition wall messages 10 mins before the actual shutdown. We do that every minute then.

sysvinit was a bit more sophisticated in that case:

From be the needwarning() function in sysvinit's
src/shutdown.c[1]. With the default setting QUIET_NONE you get:

  • a warning every minute in the last 10 minutes
  • a warning every 15 minutes in the last hour
  • a warning every 30 minutes in the last 3 hours
  • a warning every hour before that

It would make sense to implement something similar for systemd, to give users more advance warning.

[1] https://sources.debian.org/src/sysvinit/2.93-8/src/shutdown.c/#L467

@mbiebl mbiebl added RFE 🎁 Request for Enhancement, i.e. a feature request shutdown labels Feb 1, 2020
@poettering poettering added login and removed shutdown labels Aug 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
login RFE 🎁 Request for Enhancement, i.e. a feature request
Development

No branches or pull requests

2 participants