# Logstash - Startup Script / Service Daemon

**URL:** <https://discuss.elastic.co/t/logstash-startup-script-service-daemon/80690>\
**Category:** Logstash\
**Created:** [March 30, 2017, 1:53pm UTC](https://discuss.elastic.co/t/logstash-startup-script-service-daemon/80690 "2017-03-30T13:53:33Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![urbans](https://avatars.discourse-cdn.com/v4/letter/u/ecae2f/32.png) [@urbans](https://discuss.elastic.co/u/urbans)\
**Post date:** [March 30, 2017, 1:53pm UTC](https://discuss.elastic.co/t/logstash-startup-script-service-daemon/80690/1 "2017-03-30T13:53:33Z")

</div>

Been trying to figure out how to get the right config to work on the /etc/init/logstash.conf file. That is the one that can be modified using the system-install.

But it never does any of my settings, therefore the port is never opened properly.

I run a manual cmd line:  
/usr/share/logstash/bin/logstash --path.settings /etc/logstash -f /etc/logstash/conf.d &

Secondly, I would use the service logstash, but it fails to start.  
service logstash start  
Starting Logstash Daemon: logstash not configured to start, please edit /etc/sysconfig/logstash to enable

Any ideas to get either one to work?

Thanks

---

<div class="post-metadata">

**Author:** ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)\
**Post date:** [March 30, 2017, 2:29pm UTC](https://discuss.elastic.co/t/logstash-startup-script-service-daemon/80690/2 "2017-03-30T14:29:08Z")

</div>

Which version of Logstash are you using? There were some fixes just released in 5.3 that cover some of those scenarios.

---

<div class="post-metadata">

**Author:** ![urbans](https://avatars.discourse-cdn.com/v4/letter/u/ecae2f/32.png) [@urbans](https://discuss.elastic.co/u/urbans)\
**Post date:** [March 30, 2017, 3:04pm UTC](https://discuss.elastic.co/t/logstash-startup-script-service-daemon/80690/3 "2017-03-30T15:04:02Z")

</div>

5.2.2

So maybe I need to uninstall and go to the 5.3. I downloaded the newest available at the time.

---

<div class="post-metadata">

**Author:** ![urbans](https://avatars.discourse-cdn.com/v4/letter/u/ecae2f/32.png) [@urbans](https://discuss.elastic.co/u/urbans)\
**Post date:** [March 30, 2017, 3:05pm UTC](https://discuss.elastic.co/t/logstash-startup-script-service-daemon/80690/4 "2017-03-30T15:05:19Z")

</div>

Does that mean I need to upgrade everything to 5.3?

I have elastic search / logstash / kibana on the 3 node cluster.

Then I have filebeats on the clients.

---

<div class="post-metadata">

**Author:** ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)\
**Post date:** [March 30, 2017, 6:37pm UTC](https://discuss.elastic.co/t/logstash-startup-script-service-daemon/80690/5 "2017-03-30T18:37:26Z")

</div>

It's where I'd start, since it fixes the ability to set environment variables in the config files that system-install uses.

---

<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 27, 2017, 6:37pm UTC](https://discuss.elastic.co/t/logstash-startup-script-service-daemon/80690/6 "2017-04-27T18:37:43Z")

</div>

Closed on April 27, 2017, 6:37pm UTC

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