# Restart flows using Node Red API

**URL:** <https://discourse.nodered.org/t/restart-flows-using-node-red-api/34632>\
**Category:** General\
**Created:** [21 October 2020 11:42 UTC](https://discourse.nodered.org/t/restart-flows-using-node-red-api/34632 "2020-10-21T11:42:53Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![krzydec](https://avatars.discourse-cdn.com/v4/letter/k/a5b964/32.png) [@krzydec](https://discourse.nodered.org/u/krzydec)\
**Post date:** [14 December 2020 09:06 UTC](https://discourse.nodered.org/t/restart-flows-using-node-red-api/34632/11 "2020-12-14T09:06:58Z")

</div>

Hi @easyE4 .  
If you still looking for solution. Please can you quote the solution you are referring to?  
Is it a use of the PM2 or the example I posted?  
The flows will be restarted after the RPI reboot. I'm assuming you would like to restart them again, but only once after node red starts. You can use the inject node as a trigger and use "Inject once after" option

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/a/1a10ae6a45e46a0a72c827c67bc439dcac2597cd.png)

The restart may be also triggered by the event.

Please try to be more specific about your case.

---

_[View the full topic](https://discourse.nodered.org/t/restart-flows-using-node-red-api/34632)._
