# Logstash as service on red hat 5 error?

**URL:** <https://discuss.elastic.co/t/logstash-as-service-on-red-hat-5-error/21467>\
**Category:** Elasticsearch\
**Created:** [January 4, 2015, 3:19pm UTC](https://discuss.elastic.co/t/logstash-as-service-on-red-hat-5-error/21467 "2015-01-04T15:19:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Siddharth\_Trikha](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/siddharth_trikha/32/133867_2.png) [@Siddharth\_Trikha](https://discuss.elastic.co/u/Siddharth_Trikha)\
**Post date:** [January 4, 2015, 3:19pm UTC](https://discuss.elastic.co/t/logstash-as-service-on-red-hat-5-error/21467/1 "2015-01-04T15:19:16Z")

</div>

I am trying to run logstash 1.4.1 as a service on my red hat 5.3. So I do  
the following

rpm -ivh logstash-1.4.1-1\_bd507eb.  
noarch.rpm

when I run \*service logstash start \*it gives logstash started and when I  
check \*service logstash status \*it gives logstash is not running.

I check /var/log/logstash/logstash.err and it has:

_chroot: invalid option -- -Try `chroot --help' for more information._

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/4d46241f-ba73-44ee-a993-cb88b23b474a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/4d46241f-ba73-44ee-a993-cb88b23b474a%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [January 4, 2015, 3:32pm UTC](https://discuss.elastic.co/t/logstash-as-service-on-red-hat-5-error/21467/2 "2015-01-04T15:32:49Z")

</div>

You'd better ask on logstash mailing list IMO.  
[https://groups.google.com/forum/m/#!forum/logstash-users](https://groups.google.com/forum/m/#!forum/logstash-users)

Best.

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

> Le 4 janv. 2015 à 16:19, Siddharth Trikha [siddharthtrikha9@gmail.com](mailto:siddharthtrikha9@gmail.com) a écrit :
> 
> I am trying to run logstash 1.4.1 as a service on my red hat 5.3. So I do the following
> 
> rpm -ivh logstash-1.4.1-1\_bd507eb.  
> noarch.rpm
> 
> when I run service logstash start it gives logstash started and when I check service logstash status it gives logstash is not running.
> 
> I check /var/log/logstash/logstash.err and it has:
> 
> ## chroot: invalid option -- - Try `chroot --help' for more information.
> 
> You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/4d46241f-ba73-44ee-a993-cb88b23b474a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/4d46241f-ba73-44ee-a993-cb88b23b474a%40googlegroups.com).  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/074EA0FB-6D6C-481A-A2D3-A9262E70F3F7%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/074EA0FB-6D6C-481A-A2D3-A9262E70F3F7%40pilato.fr).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [January 4, 2015, 3:51pm UTC](https://discuss.elastic.co/t/logstash-as-service-on-red-hat-5-error/21467/3 "2015-01-04T15:51:53Z")

</div>

chroot on RHEL5 does not support --userspec.

For a solution, see

> <https://github.com/jordansissel/pleaserun/issues/49>
>
> RedHat/CentOS EL 5 ship with coreutils-5.97 which doesn't include the --userspec… command line option. This causes the generated init scripts to not be usable on these systems.

Jörg

On Sun, Jan 4, 2015 at 4:19 PM, Siddharth Trikha \<[siddharthtrikha9@gmail.com](mailto:siddharthtrikha9@gmail.com)

> wrote:

> I am trying to run logstash 1.4.1 as a service on my red hat 5.3. So I do  
> the following
> 
> rpm -ivh logstash-1.4.1-1\_bd507eb.  
> noarch.rpm
> 
> when I run \*service logstash start \*it gives logstash started and when I  
> check \*service logstash status \*it gives logstash is not running.
> 
> I check /var/log/logstash/logstash.err and it has:
> 
> _chroot: invalid option -- -Try `chroot --help' for more information._
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/4d46241f-ba73-44ee-a993-cb88b23b474a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/4d46241f-ba73-44ee-a993-cb88b23b474a%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/4d46241f-ba73-44ee-a993-cb88b23b474a%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/4d46241f-ba73-44ee-a993-cb88b23b474a%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAKdsXoGxygGRvPw8bXAkmW7zskOypaN3utN8PanTtNXBhb0L%3Dw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoGxygGRvPw8bXAkmW7zskOypaN3utN8PanTtNXBhb0L%3Dw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 12:41am UTC](https://discuss.elastic.co/t/logstash-as-service-on-red-hat-5-error/21467/4 "2017-07-06T00:41:00Z")

</div>


