I'm quite new in Node-RED development and problably this will be an easy question for the Node-RED expert...
Anyway, I'm using a text file to load some "application" settings when Node-RED is launched (start-up).
By the Node-RED dashboard, some of these settings can be modified by the user as prefer.
When Node-RED is shutted down, I need to update the settings file with the last settings values set by the user.
- how to recognize that Node-RED is shutting down and "run a shutdown flow" to save the last settings values?
- how to update the settings file (text) with last settings values? Only the modified settings params should be saved into the file, to avoid to re-write the entire file.
Please let me know.
Thanks a lot