arduino-sensors-toolkit/debian/serial2mqtt.service
Julien Riou 53758081d8 Initial code
Signed-off-by: Julien Riou <julien@riou.xyz>
2020-07-24 15:56:59 +02:00

16 lines
363 B
Desktop File

[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