# ValueChanged scripts run when the Gateway is Stopping and Running

**URL:** <https://forum.inductiveautomation.com/t/valuechanged-scripts-run-when-the-gateway-is-stopping-and-running/33330>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [March 23, 2020, 5:45pm UTC](https://forum.inductiveautomation.com/t/valuechanged-scripts-run-when-the-gateway-is-stopping-and-running/33330 "2020-03-23T17:45:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![informatica](https://avatars.discourse-cdn.com/v4/letter/i/3ab097/32.png) [@informatica](https://forum.inductiveautomation.com/u/informatica)\
**Post date:** [March 23, 2020, 5:45pm UTC](https://forum.inductiveautomation.com/t/valuechanged-scripts-run-when-the-gateway-is-stopping-and-running/33330/1 "2020-03-23T17:45:53Z")

</div>

Good afternoon.

In **Ignition 8.0.9** , I have seen in the logs that the _ **ValueChanged scripts** _ are executed when I restart the server: both when it is STOPPING and when it is RUNNING:

- Stopping:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/2/23d38e90a983b095c6455ee38cfe454f0efa6b5d.png)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/b/be8357ce6db1472f5603c0b263490fc1a199db03.png)

- Running:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/6/63732645ed8a821cebe64cbbcc4eb10da17562cb.png)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/6/6e0a4e257d8b307f3e42f7344f0a8d6c197b6c82.png)

This is a problem because a **value change has not really occurred.**

For more information, I start all my scripts like this (to avoid the first execution or initial subscription), but it doesn’t work:

![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/b/b1c01e60a8dd218fa5b432c16453e986e923b166.png)

Best Regards.
