# How to automatically enable NiFi controller services after restart

**URL:** <https://discourse.cogstack.org/t/how-to-automatically-enable-nifi-controller-services-after-restart/131>\
**Category:** CogStack\
**Created:** [December 29, 2022, 12:44pm UTC](https://discourse.cogstack.org/t/how-to-automatically-enable-nifi-controller-services-after-restart/131 "2022-12-29T12:44:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sandertan](https://avatars.discourse-cdn.com/v4/letter/s/ecd19e/32.png) [@sandertan](https://discourse.cogstack.org/u/sandertan)\
**Post date:** [December 29, 2022, 12:44pm UTC](https://discourse.cogstack.org/t/how-to-automatically-enable-nifi-controller-services-after-restart/131/1 "2022-12-29T12:44:13Z")

</div>

Hi CogStack team,

After restarting NiFi (for example, after a server restart), the Controller Services (for example to connect to database) are disabled, and have to be enabled manually. Do you know if there’s a way to automatically enable them?

Best,  
Sander

---

<div class="post-metadata">

**Author:** ![vladd](https://avatars.discourse-cdn.com/v4/letter/v/8c91f0/32.png) [@vladd](https://discourse.cogstack.org/u/vladd)\
**Post date:** [January 10, 2023, 10:11am UTC](https://discourse.cogstack.org/t/how-to-automatically-enable-nifi-controller-services-after-restart/131/2 "2023-01-10T10:11:14Z")

</div>

Hello Sander,

This is indeed an issue that sometimes still appears, what version of NiFi are you currently using ? I couldn’t not notice such behaviour on the latest unless I abruptly deleted the container, or if there is an attempt to change the NiFi image (with a different version of it).

Thanks,  
Vlad

---

<div class="post-metadata">

**Author:** ![sandertan](https://avatars.discourse-cdn.com/v4/letter/s/ecd19e/32.png) [@sandertan](https://discourse.cogstack.org/u/sandertan)\
**Post date:** [January 10, 2023, 10:28am UTC](https://discourse.cogstack.org/t/how-to-automatically-enable-nifi-controller-services-after-restart/131/3 "2023-01-10T10:28:21Z")

</div>

Hi Vlad,

We’re still a bit behind, on NiFi 1.15.3. Okay, good to know what your experiences are with the latest NiFi. We’ll check if the issue goes away when we upgrade.

Thanks,  
Sander
