# How to automatically restart TagProvider after upgrade

**URL:** <https://forum.inductiveautomation.com/t/how-to-automatically-restart-tagprovider-after-upgrade/6156>\
**Category:** Module Development\
**Created:** [April 4, 2013, 4:22pm UTC](https://forum.inductiveautomation.com/t/how-to-automatically-restart-tagprovider-after-upgrade/6156 "2013-04-04T16:22:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![idelamer](https://avatars.discourse-cdn.com/v4/letter/i/e5b9ba/32.png) [@idelamer](https://forum.inductiveautomation.com/u/idelamer)\
**Post date:** [April 4, 2013, 4:22pm UTC](https://forum.inductiveautomation.com/t/how-to-automatically-restart-tagprovider-after-upgrade/6156/1 "2013-04-04T16:22:46Z")

</div>

Hi,

I’m implementing a TagProvider through the extension system. The TagProvider is instantiated and startup() is called when:

- The Realtime SQLTagProvider is created
- The configuration is edited and saved.

The issue I’m having is, when I upgrade/restart the module, setup and startup are called on the GatewayModuleHook, but the old instance of the TagProvider is never shutdown() and re-instantiated/startup() with the new module. I have to manually do this.

Is there any way to force the SQLTagsManager to restart a running TagProvider when the module is updated?

Cheers  
Ivan
