I am working on Martin F. O'Connor's internet connection monitor (<https://github.com/mfoc/monitor-internet-connection>), which records Internet Outages.

The script runs from the command line ($python3 -m monitor-internet-connection) and outputs any activity to the terminal screen in real time.

Closing the ssh session closes the script. Upon closing, the script writes the activity that was output to the ssh screen to a log file.

My objective is to be able to have the script run when the ssh session terminates (i.e., not close when the terminal is closed).