# Clarity needed on operating (node-red-node-daemon)

**URL:** https://discourse.nodered.org/t/clarity-needed-on-operating-node-red-node-daemon/48876
**Category:** General
**Created:** [25 July 2021 10:39 UTC](https://discourse.nodered.org/t/clarity-needed-on-operating-node-red-node-daemon/48876 "2021-07-25T10:39:42Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Gunner](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gunner/32/43582_2.png) [@Gunner](https://discourse.nodered.org/u/Gunner)
#### Post date: [25 July 2021 10:39 UTC](https://discourse.nodered.org/t/clarity-needed-on-operating-node-red-node-daemon/48876/1 "2021-07-25T10:39:43Z")

</div>

I have a bunch of demo scripts for my SSD1330 SPI based Colour OLED Display. It seems the only way to control this display is via Python scripts. Fine, I can do that 😛 But I wanted to try controlling it via Node-Red.

I found the `daemon` node, and it works just fine as is (repeatedly runs my script) but the directions are unclear as to how to control the node more precisely.

_**Setting `msg.kill` to a signal name (e.g. SIGINT, SIGHUP) will stop the process - but if the restart flag is set it will then auto restart.**_

_ **Sending `msg.start` will also re-start the process.** _

After unchecking the auto-start/relaunch flags, I have tried setting up to inject nodes to send `msg.start` and `msg.kill`... but nothing seems to work, it just throws this clear error `Command not running`... doh, I can see that 😛

What am I not seeing?

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/e/9e9df3c80a888cc12f0fc1ca8c18bc73e2a01075.png)

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/e/0e0ab416bf7ea5612ffdc4ca11c30bca5079500b.png)

---

<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: [25 July 2021 10:47 UTC](https://discourse.nodered.org/t/clarity-needed-on-operating-node-red-node-daemon/48876/2 "2021-07-25T10:47:05Z")

</div>

start...  
in the left had side, change payload to start  
in the righthand side, change to bool -\> true

kill...  
in the left had side, change payload to kill  
in the righthand side, change to kill -\> string _ **SIGINT** _ or _ **SIGHUP** _

---

<div class="post-metadata">

### Author: ![Gunner](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gunner/32/43582_2.png) [@Gunner](https://discourse.nodered.org/u/Gunner)
#### Post date: [25 July 2021 10:54 UTC](https://discourse.nodered.org/t/clarity-needed-on-operating-node-red-node-daemon/48876/3 "2021-07-25T10:54:01Z")

</div>

Thanks 😃 Works perfectly!!

I wish the directions themselves for many nodes were this clear for us uninitiated users 😊

I was close on the start command... but had left the right side (payload) blank. Makes sense now that I see it... duh 😛

---

<div class="post-metadata">

### Author: ![Gunner](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gunner/32/43582_2.png) [@Gunner](https://discourse.nodered.org/u/Gunner)
#### Post date: [25 July 2021 11:11 UTC](https://discourse.nodered.org/t/clarity-needed-on-operating-node-red-node-daemon/48876/4 "2021-07-25T11:11:51Z")

</div>

Oh boy... perhaps it is too late and I need sleep, but this seemed like it should work?

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/f/efe8c599d5a5041b9d1c2240bea7f0dfea079af9.png)  
(I tried with and without quotes)

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

The Error doesn't make sense either... I thought I was sending a string?

```auto
msg.payload : number
-2

```

---

<div class="post-metadata">

### Author: ![Gunner](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gunner/32/43582_2.png) [@Gunner](https://discourse.nodered.org/u/Gunner)
#### Post date: [25 July 2021 11:44 UTC](https://discourse.nodered.org/t/clarity-needed-on-operating-node-red-node-daemon/48876/5 "2021-07-25T11:44:19Z")

</div>

Well, if anyone can answer that last one, fine... meanwhile I found an alternative that works as expected.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/d/eda1482d3b76f2dffd738413de55f26a24538a7d.png)  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/9/f9cfe182629851950b65184d83dd2bd7edabd6df.png)

Function contains this:

```auto
let str1 = "/home/pi/luma.examples/examples/";
let str2 = msg.payload;
let str3 = " -d ssd1331 -i spi --width 96";
let res = str1.concat(str2, str3);
msg.payload = res;
return msg;

```

---

<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: [8 August 2021 11:44 UTC](https://discourse.nodered.org/t/clarity-needed-on-operating-node-red-node-daemon/48876/6 "2021-08-08T11:44:50Z")

</div>

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