diff --git a/teleinfo.service b/teleinfo.service new file mode 100644 index 0000000..edfdd80 --- /dev/null +++ b/teleinfo.service @@ -0,0 +1,20 @@ +[Unit] +Description=Teleinformation compteur Linky +After=network-online.target + +[Service] +Type=simple + +User=guillaume +Group=guillaume +UMask=007 + +ExecStart=/usr/bin/python3 /home/guillaume/teleinfo-linky-with-raspberry/teleinfo_standard.py + +Restart=on-failure + +# Configures the time to wait before service is stopped forcefully. +TimeoutStopSec=30 + +[Install] +WantedBy=multi-user.target diff --git a/teleinfo_standard.py b/teleinfo_standard.py new file mode 120000 index 0000000..70fc3eb --- /dev/null +++ b/teleinfo_standard.py @@ -0,0 +1 @@ +teleinfo.py \ No newline at end of file