Comments (5)
I talked to a few colleagues and it might be that using pm2 inside the container might do the trick. It's not worth messing with the control outside of the container because the supervisor in hassio is supposed to take care of the lifecycle of the container.
I will have a bit more time this week to continue with testing, and if all works out I'll get all my sensors moved over. I have 7 more sticks on the way to power my dev instance for more work /testing.
from hassio-zigbee2mqtt.
Putting this here for my reference:
http://pm2.keymetrics.io/docs/usage/application-declaration/#json-format
May be able to move some of the environment setup/configuration into a pm2 process file, which can be written on start.
from hassio-zigbee2mqtt.
I think this should be lower priority as this should not trigger once pairing is turned to false.
from hassio-zigbee2mqtt.
After looking into it I came to the same conclusion. I don’t have much experience with the JS ecosystem but found this and looks like it’d be as easy as changing the start script to something like:
pm2 start npm -- start
from hassio-zigbee2mqtt.
@danielwelch i've implemented a simple pm2 implementation in #21. I've avoided to add the pm2 on debug branch, as then you wish stuff to fail and stop. I think we should not change to move options to pm2 as that should just be a safeguard to keep the process up. Ideally we should not need pm2 in the long run if we get everything else stable.
pm2 usually goes int he background so i used pm2-runtime that is recommended for docker. I'll wait for you to give it a go as well and the close the issue.
from hassio-zigbee2mqtt.
Related Issues (20)
- Feature - unsupported devices wizard/report tool HOT 4
- Can't remove deprecated options from configuration HOT 10
- OSRAM AC03648 randomly loosing connection
- Switching from Z-Stack 3.0.x to 1.2 returns error "Backup is only supported for Z-Stack 3" and zigbee2mqtt doesn't start HOT 2
- [supervisor.addons.validate] Add-on config 'auto_uart' is deprecated, use 'uart' HOT 22
- Syntax error when adding new device HOT 2
- Socat unable to create Serial Device in /dev HOT 4
- Addon will not start with shae.sh RPi4 HASS HOT 1
- friendly_name shoud atleast be 1 char long HOT 7
- Ignore serial: section in configuration.yaml HOT 4
- Zigbee2MQTT:error HOT 3
- Template variable warning: 'dict object' has no attribute 'operation_mode'
- Archive this repository HOT 4
- 502 Bad Gateway HOT 2
- 502 bad gateway with zigbee CC2652R stick HOT 10
- Ikea Tradfri GU10 bulb issue TRADFRIbulbGU10WS345lm HOT 5
- 502: Bad gateway on new install with Con Bee 2 as addon to HA placed on VM HOT 5
- Sonoff Zigbee 3.0 USB Dongle Plus - is it bricked?
- ENOENT: no such file or directory, open '/config/zigbee2mqtt/secret.yaml'
- Error: unknown resource type "addons"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hassio-zigbee2mqtt.