# ES 5.0 RC init.d service- which is it doing differently from 2.4?

**URL:** <https://discuss.elastic.co/t/es-5-0-rc-init-d-service-which-is-it-doing-differently-from-2-4/62760>\
**Category:** Elasticsearch\
**Created:** [October 11, 2016, 9:27pm UTC](https://discuss.elastic.co/t/es-5-0-rc-init-d-service-which-is-it-doing-differently-from-2-4/62760 "2016-10-11T21:27:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![red888](https://avatars.discourse-cdn.com/v4/letter/r/ecae2f/32.png) [@red888](https://discuss.elastic.co/u/red888)\
**Post date:** [October 11, 2016, 9:27pm UTC](https://discuss.elastic.co/t/es-5-0-rc-init-d-service-which-is-it-doing-differently-from-2-4/62760/1 "2016-10-11T21:27:29Z")

</div>

CentOS Linux release 7.2.1511 (Core)

openjdk version "1.8.0\_102"  
OpenJDK Runtime Environment (build 1.8.0\_102-b14)  
OpenJDK 64-Bit Server VM (build 25.102-b14, mixed mode).

ES\_HEAP\_SIZE is no longer used and I noticed differences in the init.d script between 2.4 and the 5.0 RC.

The 2.4 init.d script has this in it which 5.0 RC does not:

```
...
start() {
    checkJava
    [-x $exec] || exit 5
    if [-n "$MAX_LOCKED_MEMORY" -a -z "$ES_HEAP_SIZE"]; then
        echo "MAX_LOCKED_MEMORY is set - ES_HEAP_SIZE must also be set"
        return 7
    fi
...

```

I'm confused about how its using ES\_HEAP\_SIZE here.

---

<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:** [October 12, 2016, 8:43am UTC](https://discuss.elastic.co/t/es-5-0-rc-init-d-service-which-is-it-doing-differently-from-2-4/62760/2 "2016-10-12T08:43:37Z")

</div>

You have to edit `config/jvm.options` to set `-Xms` and `-Xmx` to another default, or use `ES_JAVA_OPTS` environment variable.

---

<div class="post-metadata">

**Author:** ![red888](https://avatars.discourse-cdn.com/v4/letter/r/ecae2f/32.png) [@red888](https://discuss.elastic.co/u/red888)\
**Post date:** [October 12, 2016, 4:03pm UTC](https://discuss.elastic.co/t/es-5-0-rc-init-d-service-which-is-it-doing-differently-from-2-4/62760/3 "2016-10-12T16:03:16Z")

</div>

I know that, but I was just curious what init.d script is actually doing with the vault

---

<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 5, 2017, 10:12pm UTC](https://discuss.elastic.co/t/es-5-0-rc-init-d-service-which-is-it-doing-differently-from-2-4/62760/4 "2017-07-05T22:12:58Z")

</div>


