# Delaying Service Start

**URL:** <https://forum.inductiveautomation.com/t/delaying-service-start/90520>\
**Category:** Ignition\
**Created:** [May 16, 2024, 8:07pm UTC](https://forum.inductiveautomation.com/t/delaying-service-start/90520 "2024-05-16T20:07:31Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ryan\_Potts](https://avatars.discourse-cdn.com/v4/letter/r/db5fbb/32.png) [@Ryan\_Potts](https://forum.inductiveautomation.com/u/Ryan_Potts)\
**Post date:** [May 16, 2024, 8:07pm UTC](https://forum.inductiveautomation.com/t/delaying-service-start/90520/1 "2024-05-16T20:07:31Z")

</div>

Hello All,

Using Rocky Linux 8 there seems to be an issue with Ignition starting before the network services comes up. Is there a proper way to add a delay on the Ignition services to start?

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [May 16, 2024, 8:15pm UTC](https://forum.inductiveautomation.com/t/delaying-service-start/90520/2 "2024-05-16T20:15:40Z")

</div>

Is there a service file at `/etc/systemd/system/Ignition-Gateway.service` or something alone those lines?

---

<div class="post-metadata">

**Author:** ![Ryan\_Potts](https://avatars.discourse-cdn.com/v4/letter/r/db5fbb/32.png) [@Ryan\_Potts](https://forum.inductiveautomation.com/u/Ryan_Potts)\
**Post date:** [May 17, 2024, 2:07pm UTC](https://forum.inductiveautomation.com/t/delaying-service-start/90520/3 "2024-05-17T14:07:53Z")

</div>

Yes there is just a service file in that location.

Should it have a delay when running from a virtual machine to give time for the network to get started. Sometimes the service fails after a PBS (Proxmox Backup Server) stopped backup of the virtual machine.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [May 17, 2024, 2:10pm UTC](https://forum.inductiveautomation.com/t/delaying-service-start/90520/4 "2024-05-17T14:10:14Z")

</div>

In the "[Unit]" section of the service file add something like this:

```python
[Unit]
After=network-online.target

```

---

<div class="post-metadata">

**Author:** ![Ryan\_Potts](https://avatars.discourse-cdn.com/v4/letter/r/db5fbb/32.png) [@Ryan\_Potts](https://forum.inductiveautomation.com/u/Ryan_Potts)\
**Post date:** [May 17, 2024, 2:47pm UTC](https://forum.inductiveautomation.com/t/delaying-service-start/90520/5 "2024-05-17T14:47:18Z")

</div>

Thanks Kevin! We made the change and are going to test it when the next backup is scheduled to run. If everything works I will come back and update your response as the solution.

---

<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:** [May 17, 2024, 3:42pm UTC](https://forum.inductiveautomation.com/t/delaying-service-start/90520/6 "2024-05-17T15:42:22Z")

</div>

Minor: You're supposed to use `systemctl edit Ignition-Gateway` to create an _override_ of the configuration file that will be applied _after_ the base configuration supplied by our installers - that way if your installer ever touches the base file in the future your override sticks around.
