Restarting node-red service in Bookworm OS
Posted: 18 Aug 2025, 16:18
Hi,
I recently upgraded my Revolution Pi Connect+ from Stretch to Bookworm OS. In my Node-RED application, I used to restart the Node-RED service once a week using the sudo node-red-restart command in an Exec node.
With the latest release, it appears that running sudo from within Node-RED is no longer supported due to the new sandboxing and privilege restrictions.
I am looking for recommended methods or best practices to achieve the following:
Restart Node-RED at a scheduled time or based on certain application variables.
Reboot the entire hardware once a week.
Ideally, the solution should allow some dynamic control from Node-RED (e.g., conditional restart based on variable values) while complying with the Bookworm OS restrictions.
Any guidance, examples, or suggested approaches would be highly appreciated.
Thank you in advance!
Best Regards,
Mani
I recently upgraded my Revolution Pi Connect+ from Stretch to Bookworm OS. In my Node-RED application, I used to restart the Node-RED service once a week using the sudo node-red-restart command in an Exec node.
With the latest release, it appears that running sudo from within Node-RED is no longer supported due to the new sandboxing and privilege restrictions.
I am looking for recommended methods or best practices to achieve the following:
Restart Node-RED at a scheduled time or based on certain application variables.
Reboot the entire hardware once a week.
Ideally, the solution should allow some dynamic control from Node-RED (e.g., conditional restart based on variable values) while complying with the Bookworm OS restrictions.
Any guidance, examples, or suggested approaches would be highly appreciated.
Thank you in advance!
Best Regards,
Mani