So I have a ubuntu server that has two tmux session that are running in the background and a few other applications on the background. Is there a way to create a scrip that would gracefully exit the process on tmux (excample Cntrl C) and shutdown all the services and reboot?
My machine tends to stop connecting to the internet after a few days and wanted to have the system auto reboot gracefully. I have all the services restart and the mux restart after a reboot.
I just need to figure out how I can get this computer to restart nicely.
Please advise with any info you can to help. Please keep in mind I am a noob but understand the basics.
Thank you in advance.
shutdown
. It's unlikely that it is corrupted but it may be inconsistent when you don't use proper DB transactions. – PerlDuck Mar 03 '18 at 19:12