Is there an easy way to warn an admin on shutdown, reboot, poweroff, halt, ... about:
- ongoing computations (high load, high disk io)
- open bash / zsh / ... terminal sessions
- other logged in users
- screen / tmux sessions
I'm looking for a solution that will support admins to not accidentally bin a lot of work.
Setting: Co-operative environment (15 users, all know each other). We use a shared server with multiple users and admins. Many users do long calculations in screen
/ tmux
sessions. Even though admins should know better, it happens from time to time that they reboot the machine and accidentally disturb ongoing work of logged in users.