# Metricbeat restart with server

**URL:** <https://discuss.elastic.co/t/metricbeat-restart-with-server/309910>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [July 18, 2022, 2:04pm UTC](https://discuss.elastic.co/t/metricbeat-restart-with-server/309910 "2022-07-18T14:04:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![aji.shinde7](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aji.shinde7/32/115498_2.png) [@aji.shinde7](https://discuss.elastic.co/u/aji.shinde7)\
**Post date:** [July 18, 2022, 2:04pm UTC](https://discuss.elastic.co/t/metricbeat-restart-with-server/309910/1 "2022-07-18T14:04:30Z")

</div>

Hello Experts,

I am a beginner in Elasticsearch.

I want to register Metricbeat as service (not sure if it should be called as a service ) on Linux.

I have instlled Metricbeat and ran it in background using "./Metricbeat &" command.

Now, I want Metricbeat to restart with server restart, what should I do ?

I tried "systemctl enable metricbeat" command but came to know that Linux server is Suse Linux server where systemctl command won't work.

I have found one option , schuduling using "crontab". Is this correct option ?

Is there any other option ?  
A link to article/ video would be a great help.

Thank you 🙏

---

<div class="post-metadata">

**Author:** ![mtojek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mtojek/32/63863_2.png) [@mtojek](https://discuss.elastic.co/u/mtojek)\
**Post date:** [July 19, 2022, 10:50am UTC](https://discuss.elastic.co/t/metricbeat-restart-with-server/309910/2 "2022-07-19T10:50:54Z")

</div>

You need to check how your Linux manages services. Maybe it is `service metricbeat restart`?

---

<div class="post-metadata">

**Author:** ![aji.shinde7](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aji.shinde7/32/115498_2.png) [@aji.shinde7](https://discuss.elastic.co/u/aji.shinde7)\
**Post date:** [July 20, 2022, 7:50am UTC](https://discuss.elastic.co/t/metricbeat-restart-with-server/309910/3 "2022-07-20T07:50:36Z")

</div>

Hello Marcin,

Thank you for your reply. I will check that.

---

<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:** [August 17, 2022, 9:51am UTC](https://discuss.elastic.co/t/metricbeat-restart-with-server/309910/4 "2022-08-17T09:51:20Z")

</div>

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