# Starting node-red automatically on reboot

**URL:** <https://discourse.nodered.org/t/starting-node-red-automatically-on-reboot/48654>\
**Category:** General\
**Created:** [20 July 2021 12:23 UTC](https://discourse.nodered.org/t/starting-node-red-automatically-on-reboot/48654 "2021-07-20T12:23:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeffh](https://avatars.discourse-cdn.com/v4/letter/j/258eb7/32.png) [@jeffh](https://discourse.nodered.org/u/jeffh)\
**Post date:** [20 July 2021 12:23 UTC](https://discourse.nodered.org/t/starting-node-red-automatically-on-reboot/48654/1 "2021-07-20T12:23:31Z")

</div>

Hello,  
I have a WIN10 Pro PC running Node-Red. When my company has a power failure I need Node-Red to automatically load and fire up, so I set it up to execute node-red.cmd on boot. Simple enough.

Upon reboot the cmd window opens up as you would expect but hangs after the 3rd line:

**20 Jul 08:09:01 - [info] Windows\_NT 10.0.19042 x64 LE**

Right before the line

**20 Jul 08:09:04 - [info] Loading pallette nodes**

It hangs until I interact with the window by clicking on it or moving it. It actually hung up at the Windows\_NT line over the entire weekend after a brief power outage last Friday so I ended up missing almost 60 hours of data until I realized it was not running. I logged onto the machine, clicked on the cmd window, and Boom! It finished loading and fired up.

Is there any way to fix this? I'd appreciate any help.

Thank you,  
JeffH

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [20 July 2021 12:38 UTC](https://discourse.nodered.org/t/starting-node-red-automatically-on-reboot/48654/2 "2021-07-20T12:38:40Z")

</div>

Search this forum for nssm & you can run it as a service (runs even when not logged in)

---

<div class="post-metadata">

**Author:** ![jeffh](https://avatars.discourse-cdn.com/v4/letter/j/258eb7/32.png) [@jeffh](https://discourse.nodered.org/u/jeffh)\
**Post date:** [20 July 2021 12:48 UTC](https://discourse.nodered.org/t/starting-node-red-automatically-on-reboot/48654/3 "2021-07-20T12:48:39Z")

</div>

I did do several searches but obviously did not use the right terms to find it. I changed my search terms and found the answer here:

[https://discourse.nodered.org/t/node-red-v0-19-4-3-minute-delay-during-startup-on-windows/3798/15](https://discourse.nodered.org/t/node-red-v0-19-4-3-minute-delay-during-startup-on-windows/3798/15)

---

<div class="post-metadata">

**Author:** ![jeffh](https://avatars.discourse-cdn.com/v4/letter/j/258eb7/32.png) [@jeffh](https://discourse.nodered.org/u/jeffh)\
**Post date:** [20 July 2021 12:49 UTC](https://discourse.nodered.org/t/starting-node-red-automatically-on-reboot/48654/4 "2021-07-20T12:49:19Z")

</div>

> [@Steve-Mcl](#):
>
> nssm

Thanks, Steve! I'll definitely check that out.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [18 September 2021 12:50 UTC](https://discourse.nodered.org/t/starting-node-red-automatically-on-reboot/48654/5 "2021-09-18T12:50:02Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
