# How to set a default start up option?

**URL:** <https://discuss.elastic.co/t/how-to-set-a-default-start-up-option/77557>\
**Category:** Logstash\
**Created:** [March 6, 2017, 6:02pm UTC](https://discuss.elastic.co/t/how-to-set-a-default-start-up-option/77557 "2017-03-06T18:02:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rich\_Johnson](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rich_johnson/32/16129_2.png) [@Rich\_Johnson](https://discuss.elastic.co/u/Rich_Johnson)\
**Post date:** [March 6, 2017, 6:02pm UTC](https://discuss.elastic.co/t/how-to-set-a-default-start-up-option/77557/1 "2017-03-06T18:02:23Z")

</div>

I am new to Elasticstack, and am currently plowing my way through Logstash configuration according to this guide:

[https://www.elastic.co/guide/en/logstash/5.2/advanced-pipeline.html](https://www.elastic.co/guide/en/logstash/5.2/advanced-pipeline.html)

On this page, it shows how you can manually start logstash with:

bin/logstash -f first-pipeline.conf --config.reload.automatic

I really like how I can make it so I don't have to restart logstash every time I make a change to my grok filters. How can I add the reload.automatic option to the default service startup?

Logstash 5.2.0 is installed on CentOS 7, if that helps.

---

<div class="post-metadata">

**Author:** ![Rich\_Johnson](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rich_johnson/32/16129_2.png) [@Rich\_Johnson](https://discuss.elastic.co/u/Rich_Johnson)\
**Post date:** [March 6, 2017, 7:34pm UTC](https://discuss.elastic.co/t/how-to-set-a-default-start-up-option/77557/2 "2017-03-06T19:34:27Z")

</div>

Looks like that's configured at /etc/logstash/startup.options:

```auto
LS_OPTS="--path.settings ${LS_SETTINGS_DIR} --config.reload.automatic"

```

---

<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 3, 2017, 7:34pm UTC](https://discuss.elastic.co/t/how-to-set-a-default-start-up-option/77557/3 "2017-04-03T19:34:40Z")

</div>

Closed on April 3, 2017, 7:34pm UTC

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