andrewn / neue-radio

Neue Radio: Prototype connected object using web technologies
10 stars 6 forks source link

Reset manager remotely #59

Closed pixelblend closed 6 years ago

pixelblend commented 6 years ago

This PR adds three new messaging topics:

  1. manager/command/restart will exit the manager's Node.JS process. When running under systemd, this will start a new process, which is effectively a restart 😉
  2. manager-web/command/restart will reloads the manager-web page in the headless Chromnium browser. This is in order to load an entirely new set of apps. This is emitted by the manager on start.
  3. manager-web/command/reload will reload each application iframe within manager-web. This is for when you need to reload / restart the currently active apps.

Both manager and manager-web can now be controlled using the interface in the setup service.

Changes to Apps and Services

Setup Service

Manager

Manager-Web