# Logstash systemd service restarts itself

**URL:** <https://discuss.elastic.co/t/logstash-systemd-service-restarts-itself/279941>\
**Category:** Logstash\
**Created:** [July 29, 2021, 7:23am UTC](https://discuss.elastic.co/t/logstash-systemd-service-restarts-itself/279941 "2021-07-29T07:23:33Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![chris\_ts24](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chris_ts24/32/79048_2.png) [@chris\_ts24](https://discuss.elastic.co/u/chris_ts24)\
**Post date:** [August 19, 2021, 8:53am UTC](https://discuss.elastic.co/t/logstash-systemd-service-restarts-itself/279941/3 "2021-08-19T08:53:15Z")

</div>

Hi @cknz ,

Thanks for the ideas! I've looked into the managing services and I am pretty sure that the service is not starting due to these. After some testing, I noticed that if I stop the services manually, they don't start again until I restart them manually.

The problem appears to be that when I start a logstash instance separate from the service, the service is started. Since I've localized the problem, I created a new issue for this:

> [@Starting separate logstash pipeline incorrectly starts Logstash Service](https://discuss.elastic.co/t/starting-separate-logstash-pipeline-incorrectly-starts-logstash-service/281933):
>
> Hi all, I've noticed recently that my Logstash service sometimes gets started for an unknown reason when I start a separate Logstash pipeline. The expected behavior is that this single Logstash instance is started and the Logstash service is not started. The actual behavior is that this single Logstash instance is started AND my Logstash service is also sometimes started. More specifically, when I run the following command from my command line and my Logstash service is stopped, the Logstash…

---

_[View the full topic](https://discuss.elastic.co/t/logstash-systemd-service-restarts-itself/279941)._
