2023-01-02 12:25:04 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Teleinformation compteur Linky
|
|
|
|
After=network-online.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
2023-01-08 15:14:08 +00:00
|
|
|
|
|
|
|
# Run as user, make sure user can access tty (group dialout)
|
|
|
|
#User=me
|
|
|
|
#Group=me
|
2023-01-02 12:25:04 +00:00
|
|
|
UMask=007
|
|
|
|
|
2023-01-08 15:30:48 +00:00
|
|
|
ExecStart=/opt/teleinfo-linky-with-raspberry/teleinfo.py
|
2023-01-02 12:25:04 +00:00
|
|
|
|
|
|
|
Restart=on-failure
|
|
|
|
|
|
|
|
# Configures the time to wait before service is stopped forcefully.
|
|
|
|
TimeoutStopSec=30
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|