ajout fichiers service + lien symbolique

This commit is contained in:
Gitouche 2023-01-02 13:25:04 +01:00
parent 419d29f5be
commit 9002994036
2 changed files with 21 additions and 0 deletions

20
teleinfo.service Normal file
View file

@ -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

1
teleinfo_standard.py Symbolic link
View file

@ -0,0 +1 @@
teleinfo.py