19 lines
533 B
Desktop File
19 lines
533 B
Desktop File
[Unit]
|
|
Description=Zigbee to MQTT bridge
|
|
Documentation=https://www.zigbee2mqtt.io/
|
|
After=network-online.target
|
|
|
|
[Service]
|
|
Environment=NODE_ENV=production
|
|
Type=exec
|
|
ExecStart=/usr/bin/npm start
|
|
WorkingDirectory=/opt/zigbee2mqtt
|
|
StandardOutput=inherit
|
|
# Or use StandardOutput=null if you don't want Zigbee2MQTT messages filling syslog, for more options see systemd.exec(5)
|
|
StandardError=inherit
|
|
Environment=ZIGBEE2MQTT_CONFIG_SERIAL_PORT={{ zigbee2mqtt.serial.port }}
|
|
Restart=always
|
|
RestartSec=10s
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target |