# Runuser: unrecognized option '--pidfile'

**URL:** <https://discuss.elastic.co/t/runuser-unrecognized-option-pidfile/21218>\
**Category:** Elasticsearch\
**Created:** [December 11, 2014, 7:16pm UTC](https://discuss.elastic.co/t/runuser-unrecognized-option-pidfile/21218 "2014-12-11T19:16:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joey\_Nooner](https://avatars.discourse-cdn.com/v4/letter/j/db5fbb/32.png) [@Joey\_Nooner](https://discuss.elastic.co/u/Joey_Nooner)\
**Post date:** [December 11, 2014, 7:16pm UTC](https://discuss.elastic.co/t/runuser-unrecognized-option-pidfile/21218/1 "2014-12-11T19:16:38Z")

</div>

I keep getting this error when using the init script. The error i receive  
is:

Starting elasticsearch: runuser: unrecognized option '--pidfile'  
Try `runuser --help' for more information.  
[FAILED]

The line of code in the init script:  
daemon --user $ES\_USER --pidfile $pidfile $exec -p $pidfile -d  
-Des.default.path.home=$ES\_HOME -Des.default.path.logs=$LOG\_DIR  
-Des.default.path.data=$DATA\_DIR -Des.default.path.work=$WORK\_DIR  
-Des.default.path.conf=$CONF\_DIR

I tried removing "--pidfile $pidfile" but no luck. Seems like elasticsearch  
isn't creating the pid file from startup. I made sure the  
/var/run/elasticsearch/ directory exists. Works just fine from startup from  
bin/elasticsearch. I have 3 other nodes running the same init script in the  
same setup that run successfully. Im running on RHEL 6.2. Any help is  
appreciated.

Thanks,  
Joey

--  
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/326e9114-38f1-4fa0-a18a-11339a4e7985%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/326e9114-38f1-4fa0-a18a-11339a4e7985%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Joey\_Nooner](https://avatars.discourse-cdn.com/v4/letter/j/db5fbb/32.png) [@Joey\_Nooner](https://discuss.elastic.co/u/Joey_Nooner)\
**Post date:** [December 11, 2014, 7:18pm UTC](https://discuss.elastic.co/t/runuser-unrecognized-option-pidfile/21218/2 "2014-12-11T19:18:04Z")

</div>

Also forgot to add, this is running on ES 1.4.1

On Thursday, December 11, 2014 1:16:38 PM UTC-6, Joey Nooner wrote:

> I keep getting this error when using the init script. The error i receive  
> is:
> 
> Starting elasticsearch: runuser: unrecognized option '--pidfile'  
> Try `runuser --help' for more information.  
> [FAILED]
> 
> The line of code in the init script:  
> daemon --user $ES\_USER --pidfile $pidfile $exec -p $pidfile -d  
> -Des.default.path.home=$ES\_HOME -Des.default.path.logs=$LOG\_DIR  
> -Des.default.path.data=$DATA\_DIR -Des.default.path.work=$WORK\_DIR  
> -Des.default.path.conf=$CONF\_DIR
> 
> I tried removing "--pidfile $pidfile" but no luck. Seems like  
> elasticsearch isn't creating the pid file from startup. I made sure the  
> /var/run/elasticsearch/ directory exists. Works just fine from startup from  
> bin/elasticsearch. I have 3 other nodes running the same init script in the  
> same setup that run successfully. Im running on RHEL 6.2. Any help is  
> appreciated.
> 
> Thanks,  
> Joey

--  
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/27e72152-f081-420e-84e2-ddb36ddabe15%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/27e72152-f081-420e-84e2-ddb36ddabe15%40googlegroups.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:44am UTC](https://discuss.elastic.co/t/runuser-unrecognized-option-pidfile/21218/3 "2017-07-06T00:44:06Z")

</div>


