# Run commands after a reboot

**URL:** <https://discourse.nodered.org/t/run-commands-after-a-reboot/12443>\
**Category:** General\
**Created:** [20 June 2019 21:04 UTC](https://discourse.nodered.org/t/run-commands-after-a-reboot/12443 "2019-06-20T21:04:50Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![fabien](https://avatars.discourse-cdn.com/v4/letter/f/85e7bf/32.png) [@fabien](https://discourse.nodered.org/u/fabien)\
**Post date:** [20 June 2019 21:04 UTC](https://discourse.nodered.org/t/run-commands-after-a-reboot/12443/1 "2019-06-20T21:04:50Z")

</div>

Hello,  
I would like the node red boot information.

it's to launch command line just after node red starts  
maybe there is a node all done

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [20 June 2019 21:25 UTC](https://discourse.nodered.org/t/run-commands-after-a-reboot/12443/2 "2019-06-20T21:25:57Z")

</div>

Apologies, It's not clear to me what you are asking for. The boot / startup information is shown in the console when you start Node-RED - or in the system log if started automatically (depending on operating system).

---

<div class="post-metadata">

**Author:** ![fabien](https://avatars.discourse-cdn.com/v4/letter/f/85e7bf/32.png) [@fabien](https://discourse.nodered.org/u/fabien)\
**Post date:** [20 June 2019 21:43 UTC](https://discourse.nodered.org/t/run-commands-after-a-reboot/12443/3 "2019-06-20T21:43:10Z")

</div>

sorry i'm not very good at english: i use google translate.

I would like to run command lines with the 'exec' node ,automatically after a raspberry reboot.  
or after a power outage.

it is to launch a vpn (ngrok).  
I can not run it with 'systemed',since the update of DEBIAN .  
I hope I was explicit.

---

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [20 June 2019 21:48 UTC](https://discourse.nodered.org/t/run-commands-after-a-reboot/12443/4 "2019-06-20T21:48:28Z")

</div>

Can you use an inject node to run the exec node command after a reboot...

![inject](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/1/109ab17254e365e6ec1da320b4a435c420f4c5ba.png)

---

<div class="post-metadata">

**Author:** ![fabien](https://avatars.discourse-cdn.com/v4/letter/f/85e7bf/32.png) [@fabien](https://discourse.nodered.org/u/fabien)\
**Post date:** [20 June 2019 22:01 UTC](https://discourse.nodered.org/t/run-commands-after-a-reboot/12443/5 "2019-06-20T22:01:59Z")

</div>

Thank you for your answer.  
a small problem anyway, at each deployment, the node 'inject' reactivates the command lines. That's not very important.  
thank you.

---

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [20 June 2019 22:07 UTC](https://discourse.nodered.org/t/run-commands-after-a-reboot/12443/6 "2019-06-20T22:07:52Z")

</div>

You could change your deploy settings so only Modified Flows, or even Modified Nodes are deployed, and the inject node would then not trigger (unless of course you changed it).

![deploy](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/c/c87629d73887e3d7c9cf68b9d247f49db3fd4d18.jpeg)
