# Make Elasticsearch running as a service?

**URL:** <https://discuss.elastic.co/t/make-elasticsearch-running-as-a-service/280510>\
**Category:** Elasticsearch\
**Created:** [August 5, 2021, 8:42am UTC](https://discuss.elastic.co/t/make-elasticsearch-running-as-a-service/280510 "2021-08-05T08:42:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Veak](https://avatars.discourse-cdn.com/v4/letter/v/ed8c4c/32.png) [@Veak](https://discuss.elastic.co/u/Veak)\
**Post date:** [August 5, 2021, 8:42am UTC](https://discuss.elastic.co/t/make-elasticsearch-running-as-a-service/280510/1 "2021-08-05T08:42:52Z")

</div>

Hello, i've installed the elasticsearch 7.x on a raspberry PI 4B on ubuntu 20.04.  
I've installed it manually with the .tgz.  
It's working fine when i launch it manually with the command :  
./elasticsearch -d  
(in the directory /etc/elasticsearch/bin/)  
It's working only when i run it from the user ubuntu but don't work with the user root (i don't know why)  
I need to run it automatically from the start of the raspberry pi without running any commands.  
Like if i would do : service elasticsearch enable  
But i need help, i tried to make a file on the systemd, but it's not working well.

Could you please help me ? I'm kinda lost.

Thank you

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [August 9, 2021, 5:04am UTC](https://discuss.elastic.co/t/make-elasticsearch-running-as-a-service/280510/2 "2021-08-09T05:04:58Z")

</div>

Welcome to our community! 😃

You should try the aarch packages, these will include an init script - [Download Elasticsearch Free | Get Started Now | Elastic | Elastic](https://www.elastic.co/downloads/elasticsearch)

---

<div class="post-metadata">

**Author:** ![Veak](https://avatars.discourse-cdn.com/v4/letter/v/ed8c4c/32.png) [@Veak](https://discuss.elastic.co/u/Veak)\
**Post date:** [August 9, 2021, 9:11am UTC](https://discuss.elastic.co/t/make-elasticsearch-running-as-a-service/280510/3 "2021-08-09T09:11:16Z")

</div>

In which folder do you see the init script?

I don't see it ! Thank you very much

---

<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:** [September 6, 2021, 9:11am UTC](https://discuss.elastic.co/t/make-elasticsearch-running-as-a-service/280510/4 "2021-09-06T09:11:33Z")

</div>

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