Supervisor
As we create several different projects throughout the book, the scripts we write will need to keep running even if we’re not sitting in front of the Pi waiting for events to occur. Normally when you run a Python script from a Terminal, the Python script will stop working when you close that Terminal window or session.
You can instruct a script to continue to run in the background even after the terminal from which it was started is closed. However, there’s no guarantee that such a script will always continue to run, especially if there are memory or other resource constraints. Additionally, it would be useful if we could have certain project scripts automatically start running when the Pi reboots. What we need is a supervisor that ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access