inode64 / inode64-overlay

Gentoo overlay
Creative Commons Zero v1.0 Universal
12 stars 3 forks source link

zigbee2mqtt does not honor signals #16

Closed alexanderustinov closed 12 months ago

alexanderustinov commented 12 months ago

Hi.

zigbee2mqtt daemon from app-misc/zigbee2mqtt does not restart gracefully (for me) with openrc unless

start() {
    checkconfig || return 1
    ebegin "Starting ${SVCNAME}"
    start-stop-daemon --start --user zigbee2mqtt:zigbee2mqtt --env ZIGBEE2MQTT_DATA=/var/lib/${SVCNAME} --chdir /usr/lib64/node_modules/zigbee2mqtt --exec /usr/bin/npm --background --make-pidfile --pidfile /run/${SVCNAME}.pid -- start
    eend $?
}

is changed to

start() {
    checkconfig || return 1
    ebegin "Starting ${SVCNAME}"
    start-stop-daemon --start --user zigbee2mqtt:zigbee2mqtt --env ZIGBEE2MQTT_DATA=/var/lib/${SVCNAME} --chdir /usr/lib64/node_modules/zigbee2mqtt --exec /usr/bin/node --background --make-pidfile --pidfile /run/${SVCNAME}.pid -- index.js
    eend $?
}

(got idea from https://github.com/Koenkk/zigbee2mqtt/issues/7611 )