BackgroundI work on a development team and for each project we have a different server setup to emulate the environment of our customers. It can be hard to keep track of what I was doing on each server and where I need to start. In order to alleviate this problem I have started using a terminal multiplexer (tmux/screen).  My problem is on one of the servers that I work on, the project lead is constantly making mistakes and resetting the system. When that happens I lose all of my screens as well as time getting back to where I was and what I was doing.QuestionAll developers are given root access to the servers and I want to know if there is anyway I can set up the server so that my project lead gets a warning of users logged on or screens running when they decide to reset the server?  (If possible I'd like to include a message of what I'm running and why they should find a different solution to resetting the server. In my company this is the only project manager that resets the server on a daily basis.)
How to issue a warning to administrator (when the administrator issues a system restart) when user has process running
command line;administration;binary