From 9002994036d95b478282b751b563967bccadde04 Mon Sep 17 00:00:00 2001 From: Gitouche <26656-gitouche@users.noreply.framagit.org> Date: Mon, 2 Jan 2023 13:25:04 +0100 Subject: [PATCH] ajout fichiers service + lien symbolique --- teleinfo.service | 20 ++++++++++++++++++++ teleinfo_standard.py | 1 + 2 files changed, 21 insertions(+) create mode 100644 teleinfo.service create mode 120000 teleinfo_standard.py 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