16 lines
363 B
Desktop File
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
|