Good afternoon,
I hope this message finds you well. I understand your need for a solution to monitor user sessions and automatically disconnect terminal sessions that exceed 8 hours while preserving the background tmux sessions. I am confident in my ability to provide you with a reliable and efficient solution.
Here is a version of my solution,
I will develop a Bash script that periodically checks the active user's session duration. If the session duration exceeds 8 hours, once that is done we can disconnect the terminal session and have the tmux running in the background.
If you decide to proceed with this proposal, please provide any specific preferences or requirements you have for the script. Additionally, share information about your system environment, such as the operating system and any existing user management systems in place.
Thank you for considering my proposal.
Best Regards,
Shashwat