# Auto restart gateway timer scripts

**URL:** <https://forum.inductiveautomation.com/t/auto-restart-gateway-timer-scripts/109833>\
**Category:** Ignition\
**Created:** [August 15, 2025, 7:35pm UTC](https://forum.inductiveautomation.com/t/auto-restart-gateway-timer-scripts/109833 "2025-08-15T19:35:24Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [August 15, 2025, 10:15pm UTC](https://forum.inductiveautomation.com/t/auto-restart-gateway-timer-scripts/109833/10 "2025-08-15T22:15:43Z")

</div>

I absolutely agree with the general advice in this thread that this is generally inadvisable.

That said, for the sake of it, the `ScriptManager` class is your entry point to the list of running threads in 8.1/your best source of programmatic access.

> [@Creating a tag that returns the number of active scripts on a gateway](https://forum.inductiveautomation.com/t/creating-a-tag-that-returns-the-number-of-active-scripts-on-a-gateway/43181/3):
>
> You could run this somewhere on the gateway and write the results to a tag using your mechanism of choice: from com.inductiveautomation.ignition.common.script import ScriptManager list(ScriptManager.executingScripts())

In 8.3 the web API has the corresponding functionality that's available in 8.1 but with the ability to authenticate via API tokens - so you could list running scripts and issue terminate requests via `system.net.httpClient` as another option.

---

_[View the full topic](https://forum.inductiveautomation.com/t/auto-restart-gateway-timer-scripts/109833)._
