Spectra GmbH & Co. KG
vertrieb@spectra.de
User Manual
Spectra PowerBox 100-IoT
Version 1.1
November 2017
8.2.1 Viewing the Node-Red Runtime Log
The Node-Red process runs in the root user context. To view the runtime log, you must switch
to the root context via the terminal emulation. To this end, you must run the command sudo
–i. With the command pm2 logs node-red you can read the runtime log.
You can terminate the log output with the shortcut strg+c (or crtl+c).
8.2.2 Restarting the Node-Red Process
There are several options of restarting the Node-Red process.
1. pm2 restart node-red (restart of the Node-Red process)
2. pm2 reload node-red (reading in new configurations without
terminating the process)
3. pm2 gracefulReload node-red (transmits the exit signal, then reloads)
8.2.3 Stopping the Node-Red Process
The Node-Red process can be stopped by running the command pm2 stop node-red.
8.2.4 Starting the Node-Red Process
The Node-Red process can be started by running the command pm2 start node-red.
94