# Does the .tar.gz archive include the systemd module?

**URL:** <https://discuss.elastic.co/t/does-the-tar-gz-archive-include-the-systemd-module/259372>\
**Category:** Elasticsearch\
**Created:** [December 22, 2020, 11:04am UTC](https://discuss.elastic.co/t/does-the-tar-gz-archive-include-the-systemd-module/259372 "2020-12-22T11:04:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![JDP](https://avatars.discourse-cdn.com/v4/letter/j/c6cbf5/32.png) [@JDP](https://discuss.elastic.co/u/JDP)\
**Post date:** [December 22, 2020, 11:04am UTC](https://discuss.elastic.co/t/does-the-tar-gz-archive-include-the-systemd-module/259372/1 "2020-12-22T11:04:50Z")

</div>

Hi all,

I have a working installation of Elasticsearch 7.10.1 on Debian 10.7, which was installed via the tar.gz archive into `/opt/elasticseach`, however I'm having trouble using `systemd` to control startup\shutdown.

Because the archive does not come with a template systemd service file, I used the one found in the repo here:

> <https://github.com/elastic/elasticsearch/blob/master/distribution/packages/src/common/systemd/elasticsearch.service>

However, I think the following is causing problems:

`Type=notify`

In my tests, Elasticsearch never notifies `systemd` that it's full loaded, even when Elasticsearch does successfully complete startup. I always end up hitting the `TimeoutStartSec` value (even when extended to 5 minutes), and `systemd` assumes the service failed.

I suspect Elasticsearch isn't equipped with a `systemd` module to use `sd_notify` based on a comment found here (line 199 at time of posting):

> <https://github.com/elastic/elasticsearch/pull/44673/files/493c2932fa0ef3c2e1f7b64040bdecf7f5be0517#diff-2d76a69caf517324707f6d3f1cd07deb648e25fc4d629c511be51a3102ab0de0R199>

I might be totally wrong, and am looking to the community to either confirm or correct my findings. Elasticsearch starts up fine, and works OK - it's just not reporting back to `systemd` at all!

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [December 22, 2020, 11:09am UTC](https://discuss.elastic.co/t/does-the-tar-gz-archive-include-the-systemd-module/259372/2 "2020-12-22T11:09:37Z")

</div>

No, the `systemd` module is only included in "package" distributions (i.e. `.deb` and `.rpm`, but not `.tar.gz`):

> <https://github.com/elastic/elasticsearch/blob/86cc49e7e7cb56dc2b9604ab23e0d9f702b6ccd5/distribution/build.gradle#L406-L408>

---

<div class="post-metadata">

**Author:** ![JDP](https://avatars.discourse-cdn.com/v4/letter/j/c6cbf5/32.png) [@JDP](https://discuss.elastic.co/u/JDP)\
**Post date:** [December 22, 2020, 11:20am UTC](https://discuss.elastic.co/t/does-the-tar-gz-archive-include-the-systemd-module/259372/3 "2020-12-22T11:20:58Z")

</div>

Thanks, good to know for sure!

---

<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:** [January 19, 2021, 11:21am UTC](https://discuss.elastic.co/t/does-the-tar-gz-archive-include-the-systemd-module/259372/4 "2021-01-19T11:21:01Z")

</div>

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