Systemd File to Run the Python Script from Boot - OStillman/HomeAssistantTeamsStatus GitHub Wiki

Let's run this script from boot using a Systemd Service file

This step is easy:

  1. Copy the TeamsStatus.service file to /etc/systemd/system - this may need to be run as a root user i.e. with sudo
  2. Reload the daemon sudo systemctl daemon-reload
  3. Activate the systemd file sudo systemctl enable TeamsStatus.service
  4. Either: Reboot, or Start the Service with sudo systemctl start TeamsStatus.service