ansible-pilote/files/serial2mqtt/serial2mqtt.service
Julien Riou 096a3e0540
Initial commit
Signed-off-by: Julien Riou <julien@riou.xyz>
2024-04-27 15:21:55 +02:00

18 lines
385 B
Desktop File

# Managed by Ansible
[Unit]
Description=Read serial port and send sensors measurements to MQTT broker
After=syslog.target network.target
[Service]
Type=simple
User=serial2mqtt
Group=serial2mqtt
EnvironmentFile=-/etc/default/serial2mqtt
ExecStart=/opt/arduino-sensors-toolkit/serial2mqtt.py $DAEMON_OPTS
KillMode=process
TimeoutSec=30
Restart=no
[Install]
WantedBy=multi-user.target