1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
[Unit] Description=zigbee2mqtt After=network.target [Service] ExecStart=node index.js Environment=ZIGBEE2MQTT_DATA=/var/lib/zigbee2mqtt WorkingDirectory=/usr/lib/node_modules/zigbee2mqtt StandardOutput=inherit StandardError=inherit Restart=always User=zigbee2mqtt [Install] WantedBy=multi-user.target