# Monitoring and starting service

**URL:** <https://discourse.nodered.org/t/monitoring-and-starting-service/1330>\
**Category:** General\
**Created:** [4 July 2018 18:26 UTC](https://discourse.nodered.org/t/monitoring-and-starting-service/1330 "2018-07-04T18:26:07Z")\
**Posts on this page:** 4\
**Page:** 2

<div class="post-metadata">

**Author:** ![krambriw](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/krambriw/32/5429_2.png) [@krambriw](https://discourse.nodered.org/u/krambriw)\
**Post date:** [5 July 2018 04:05 UTC](https://discourse.nodered.org/t/monitoring-and-starting-service/1330/21 "2018-07-05T04:05:25Z")

</div>

> [@dedynobre](#):
>
> Would not it be possible to get this status and make a comparison and soon after starting the service?

Yes, you can, use the Status node and then some logic (in a function node) to compare for status changes

---

<div class="post-metadata">

**Author:** ![dedynobre](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dedynobre/32/950_2.png) [@dedynobre](https://discourse.nodered.org/u/dedynobre)\
**Post date:** [5 July 2018 13:49 UTC](https://discourse.nodered.org/t/monitoring-and-starting-service/1330/22 "2018-07-05T13:49:40Z")

</div>

Thank you @krambriw.

I was able to extract the status of the connection.

---

<div class="post-metadata">

**Author:** ![dedynobre](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dedynobre/32/950_2.png) [@dedynobre](https://discourse.nodered.org/u/dedynobre)\
**Post date:** [6 July 2018 17:04 UTC](https://discourse.nodered.org/t/monitoring-and-starting-service/1330/23 "2018-07-06T17:04:20Z")

</div>

Good,

Following guidance @davidcgu

I checked what was happening with the home assistant service and I was able to identify something strange with the power supply that the raspberry pi power was doing with what it connected and disconnected from my wireless network.  
Even finding it odd that only the home assistant service stopped the source was changed and no more network failure occurred.

The NR service, for example, does not stop. Anyway, I'm following up to see if it will solve the problem.

Speaking now of the condition to start the service in case it will stop if you need to another situation, it was verified the status check and if it comes to stop him have the service start.

Except that the way it is loaded but as it has not started the service, it keeps restarting and stays in that loop.

Is there a node that gives only one pulse on the next node and stops running?

I think that would solve.

---

<div class="post-metadata">

**Author:** ![krambriw](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/krambriw/32/5429_2.png) [@krambriw](https://discourse.nodered.org/u/krambriw)\
**Post date:** [6 July 2018 20:18 UTC](https://discourse.nodered.org/t/monitoring-and-starting-service/1330/24 "2018-07-06T20:18:06Z")

</div>

> [@dedynobre](#):
>
> Is there a node that gives only one pulse on the next node and stops running?

Difficult to understand what you ask, but guessing here, put a RBE node after the Status node, then RBE node will send only once every time status change

[Previous page](https://discourse.nodered.org/t/monitoring-and-starting-service/1330.md?page=1)
