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