[Unit] Description=BoschHomeAutomation 2 MQTT Gateway After=multi-user.target [Service] Type=idle Restart=always RestartSec=30 StartLimitInterval=200 StartLimitBurst=5 WorkingDirectory=/opt/bsh-gateway ExecStart=/opt/bsh-gateway/BSHGateWay.py ExecStop=/bin/sleep 1 [Install] WantedBy=multi-user.target