# Logstash doesnt stop when config.reload.automatic is enabled

**URL:** <https://discuss.elastic.co/t/logstash-doesnt-stop-when-config-reload-automatic-is-enabled/266596>\
**Category:** Logstash\
**Created:** [March 8, 2021, 7:07pm UTC](https://discuss.elastic.co/t/logstash-doesnt-stop-when-config-reload-automatic-is-enabled/266596 "2021-03-08T19:07:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hayo](https://avatars.discourse-cdn.com/v4/letter/h/4af34b/32.png) [@hayo](https://discuss.elastic.co/u/hayo)\
**Post date:** [March 8, 2021, 7:07pm UTC](https://discuss.elastic.co/t/logstash-doesnt-stop-when-config-reload-automatic-is-enabled/266596/1 "2021-03-08T19:07:11Z")

</div>

Hello,  
I am running a logstash pipeline with JDBC input triggered via crontab, to ensure also a process runs afterwards.  
Besides that i have also a logstash pipeline with JDBC input but with schedule as a service.

I was hoping to have both logstash instances to have the same configuration file.  
I added for the 2nd scenario config.reload.automatic: true to the logstash.yml, expecting it wouldnt do anything for scenario 1 as, logstash is shut down again.

Now what I notice is that logstash does not exit when config.reload.automatic is enabled.  
I am unable to find this behaviour in the documentation.

Is this intended?

Using:  
Logstash 7.11  
Ubuntu 20.04

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [March 8, 2021, 7:35pm UTC](https://discuss.elastic.co/t/logstash-doesnt-stop-when-config-reload-automatic-is-enabled/266596/2 "2021-03-08T19:35:26Z")

</div>

In general logstash will keep running forever, waiting for new events from the inputs. In a few cases it will exit when it knows it will not see any new events. For example, if a stdin input reaches EOF then it will exit. If I remember correctly then a jdbc input without a schedule will exit after running the sql statement once.

---

<div class="post-metadata">

**Author:** ![hayo](https://avatars.discourse-cdn.com/v4/letter/h/4af34b/32.png) [@hayo](https://discuss.elastic.co/u/hayo)\
**Post date:** [March 8, 2021, 7:39pm UTC](https://discuss.elastic.co/t/logstash-doesnt-stop-when-config-reload-automatic-is-enabled/266596/3 "2021-03-08T19:39:44Z")

</div>

I forgot to add indeed:  
I am using jdbc input without schedule 🙂

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 5, 2021, 7:39pm UTC](https://discuss.elastic.co/t/logstash-doesnt-stop-when-config-reload-automatic-is-enabled/266596/4 "2021-04-05T19:39:46Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
