# How to start LS1.5 as a background task

**URL:** <https://discuss.elastic.co/t/how-to-start-ls1-5-as-a-background-task/33814>\
**Category:** Logstash\
**Created:** [November 4, 2015, 9:56pm UTC](https://discuss.elastic.co/t/how-to-start-ls1-5-as-a-background-task/33814 "2015-11-04T21:56:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jjdepaul](https://avatars.discourse-cdn.com/v4/letter/j/e0b2c6/32.png) [@jjdepaul](https://discuss.elastic.co/u/jjdepaul)\
**Post date:** [November 4, 2015, 9:56pm UTC](https://discuss.elastic.co/t/how-to-start-ls1-5-as-a-background-task/33814/1 "2015-11-04T21:56:49Z")

</div>

We are using Linux with LogStash 1.5.4. We are trying to setup Logstash to run as a background process on this server. We ahve tried to start service as the regular background task like this:

```
nohup ./bin/logstash -f basic1.conf & 

```

But this doesn't work for some reason - it throws and exception like this:

```
{:timestamp=>"2015-11-04T16:38:07.362000-0500", :message=>"A plugin had an unrecoverable error. Will restart this plugin.\n Plugin: <LogStash::Inputs::Stdin debug=>false, codec=><LogStash::Codecs::Line charset=>\"UTF-8\">>\n Error: Unknown error - Bad file descriptor", :level=>:error}

```

What is the right way to start LS as a daemon process?

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [November 4, 2015, 10:06pm UTC](https://discuss.elastic.co/t/how-to-start-ls1-5-as-a-background-task/33814/2 "2015-11-04T22:06:18Z")

</div>

If possible, install the RPM or the Debian package and use the init script bundled with either, allowing you to start Logstash with

```
service logstash start

```

our similar. Consult the documentation for your flavor of Linux.

---

<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:** [July 6, 2017, 5:24am UTC](https://discuss.elastic.co/t/how-to-start-ls1-5-as-a-background-task/33814/3 "2017-07-06T05:24:00Z")

</div>


