[Unit] Description=Bluetooth temperature sensor to MQTT publisher After=network.target # https://selivan.github.io/2017/12/30/systemd-serice-always-restart.html StartLimitIntervalSec=0 [Service] Type=simple User=mijia-homie WorkingDirectory=/etc/mijia-homie Environment=RUST_BACKTRACE=1 Environment=RUST_LIB_BACKTRACE=1 ExecStart=/usr/bin/mijia-homie Restart=always RestartSec=10 [Install] WantedBy=multi-user.target