# Restarting Ignition Gateway

**URL:** <https://forum.inductiveautomation.com/t/restarting-ignition-gateway/116099>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [June 22, 2026, 5:57pm UTC](https://forum.inductiveautomation.com/t/restarting-ignition-gateway/116099 "2026-06-22T17:57:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matthew\_Karee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/matthew_karee/32/63956_2.png) [@Matthew\_Karee](https://forum.inductiveautomation.com/u/Matthew_Karee)\
**Post date:** [June 22, 2026, 5:57pm UTC](https://forum.inductiveautomation.com/t/restarting-ignition-gateway/116099/1 "2026-06-22T17:57:30Z")

</div>

I am debugging a faulty database connection and it has been recommended that I restart the Ignition gateway.

Can I do this without losing tag data? I have created a backup of my Gateway just in case.

Is this the correct command for a Windows system?

```python
gwcmd.bat -r

```

---

<div class="post-metadata">

**Author:** ![Cory.grube](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cory.grube/32/20476_2.png) [@Cory.grube](https://forum.inductiveautomation.com/u/Cory.grube)\
**Post date:** [June 22, 2026, 6:07pm UTC](https://forum.inductiveautomation.com/t/restarting-ignition-gateway/116099/2 "2026-06-22T18:07:04Z")

</div>

You won't lose any tag configurations, but any Vision clients/Perspective sessions using those tags for display will error while the gateway restarts. If your database is for tag history, you'll also have a history gap for this period.

Your command looks right, though you might need `.\gwcmd.bat -r` depending if you're using powershell vs command prompt (I think?)

---

<div class="post-metadata">

**Author:** ![Steve\_Laubach](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/steve_laubach/32/60900_2.png) [@Steve\_Laubach](https://forum.inductiveautomation.com/u/Steve_Laubach)\
**Post date:** [June 22, 2026, 7:17pm UTC](https://forum.inductiveautomation.com/t/restarting-ignition-gateway/116099/3 "2026-06-22T19:17:18Z")

</div>

You can restart the service in services.msc since it's a windows system.
