# Restart module from script?

**URL:** <https://forum.inductiveautomation.com/t/restart-module-from-script/87511>\
**Category:** Ignition\
**Created:** [March 18, 2024, 7:23pm UTC](https://forum.inductiveautomation.com/t/restart-module-from-script/87511 "2024-03-18T19:23:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![joe\_carlin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/joe_carlin/32/9774_2.png) [@joe\_carlin](https://forum.inductiveautomation.com/u/joe_carlin)\
**Post date:** [March 18, 2024, 7:23pm UTC](https://forum.inductiveautomation.com/t/restart-module-from-script/87511/1 "2024-03-18T19:23:31Z")

</div>

We support an 8.1.33 system with alarm notification via SMS. The alarm pipelines renotify the roster when an alarm is not acknowledged, repeating every 30 minutes. Periodically alarms get stuck in the renotify pipeline even after they are acknowledged and/or cleared. I would say this happens about 1 out of 500 alarms and it has happened with multiple different alarms. This has been an issue with this system for years dating back to 7.9. We have engaged tech support on this and never could pinpoint the issue.

When this happens we get a call from our customer and we can see that the renotify pipeline is active even though the alarm is acknowledged and/or cleared. We can always fix the problem by restarting the alarm notification module from the gateway.

Is there a way to write a script to restart the alarm notification module? We would like to provide a button where an operator can restart this module from a client. This client has at least one operator on duty 24/7 and if their operators were trained to do this they could stop the roster from being texted every 30 minutes all night long.

---

<div class="post-metadata">

**Author:** ![Noll\_Thiessen](https://avatars.discourse-cdn.com/v4/letter/n/a88e4f/32.png) [@Noll\_Thiessen](https://forum.inductiveautomation.com/u/Noll_Thiessen)\
**Post date:** [March 20, 2024, 11:33am UTC](https://forum.inductiveautomation.com/t/restart-module-from-script/87511/2 "2024-03-20T11:33:40Z")

</div>

Try this example here:

> [@Restart module in a Script or in Command Line scripts](https://forum.inductiveautomation.com/t/restart-module-in-a-script-or-in-command-line-scripts/50487/17#:~:text=Wanted%20to%20comment%20with%20a%20solution%20here):
>
> Wanted to comment with a solution here. First steps are getting the module ID that needs to be reset. #this can be removed once the ID is known #start a logger to get to get the IDs of the installed modules, this will output to the gateway logs logger = system.util.getLogger("myLogger") #this will print all the results = system.util.getModules() for row in range(results.rowCount): names = results.getValueAt(row, "Id") logger.info(names) From this the following script can be used to reset t…
