NiceNode / nice-node

Run a node — just press start

Home Page:https://www.nicenode.xyz

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"Restart nodes after reboot" or "start nodes on login"

jgresham opened this issue · comments

Feature details

"Restart nodes after reboot" or "start nodes on login", for all nodes that the user left running before restart and before logging-out.

Technicals
Electron has an API to register callbacks for power events https://www.electronjs.org/docs/latest/api/power-monitor

We don't currently save if a user stopped a node or not. If a user manually stops a node, then we do not want to automatically start that node ever. We can introduce a new node property stoppedBy with values 'user' | nice-node' | 'shutdown' | 'crash'