evancohen / smart-mirror

The fairest of them all. A DIY voice controlled smart mirror with IoT integration.
http://smart-mirror.io
2.8k stars 694 forks source link

using v0.27 and pm2 (new mgmt tool) to keep process running, will get two instance on config save #840

Closed sdetweil closed 3 years ago

sdetweil commented 4 years ago

the new installer supports using the nod PM2 utility to manage starting processes on boot or failure. when saving config, a failure is detected and the process is restarted, but the code also restarts, so we end up with a blanak screen over the good screen

Expected Behavior

smart-mirror is running ok

Current Behavior

two instance of smart-mirror is running, one failed due to port in use

Possible Solution

Steps to Reproduce (for bugs)

  1. install 0.27 using the automated installer
  2. say yes to use pm2 to start on boot 3.when running using the remote config ui, press submit