pyradmon.py is a little python script I need running to get data from my Geiger counter (GMC-320) to its data showing webpage (Radmon.org).
The script has to always run, also after reboots, outages, changes to the system or the script itself, and it has to be restarted if it fails.
On Ubuntu 18 and many other systems a system called Systemd is in use to facilitate this.
To get the script running in systemd do the following:
Create a file called "radmon.service" in /etc/systemd/system .
Then do:
And if needed do:
That's it.
No comments:
Post a Comment