# Another Way to Stop/Restart Logstash inside 7.3.0 Docker Container?

**URL:** <https://discuss.elastic.co/t/another-way-to-stop-restart-logstash-inside-7-3-0-docker-container/194100>\
**Category:** Logstash\
**Tags:** docker\
**Created:** [August 6, 2019, 8:28pm UTC](https://discuss.elastic.co/t/another-way-to-stop-restart-logstash-inside-7-3-0-docker-container/194100 "2019-08-06T20:28:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![redapplesonly](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/redapplesonly/32/57700_2.png) [@redapplesonly](https://discuss.elastic.co/u/redapplesonly)\
**Post date:** [August 6, 2019, 8:28pm UTC](https://discuss.elastic.co/t/another-way-to-stop-restart-logstash-inside-7-3-0-docker-container/194100/1 "2019-08-06T20:28:09Z")

</div>

Hi Elasticfolk,

I’m new to Logstash / Elasticsearch / Kibana, slowly building my first pipeline. I’ve pulled and spun up the Docker 7.3.0 versions of L/E/K. I’m concentrating on Logstash at the moment.

So right off the bat, I’m hitting trouble. Inside the docker container, I’d like to (A) stop the Logstash service, (B) make changes in config/logstash.conf, then (C) restart Logstash. The problem is I can’t do (A) and (C):

```
bash-4.2$ systemctl stop logstash
Failed to get D-Bus connection: Operation not permitted
bash-4.2$

```

A bit of Google research suggests that this container isn’t loaded with systemctl, which I get. (See [here](https://linuxacademy.com/community/show/21629-docker-failed-to-get-dbus-connection-operation-not-permitted/)) I don’t want to install systemctl, but I need a way to stop/start Logstash as I work. Any advice?

Thanks,  
-Pete

---

<div class="post-metadata">

**Author:** ![redapplesonly](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/redapplesonly/32/57700_2.png) [@redapplesonly](https://discuss.elastic.co/u/redapplesonly)\
**Post date:** [August 11, 2019, 8:51pm UTC](https://discuss.elastic.co/t/another-way-to-stop-restart-logstash-inside-7-3-0-docker-container/194100/2 "2019-08-11T20:51:43Z")

</div>

Solution: I didn't realize that to restart the service, you simply restart the Docker container. That's an old Docker trick, one a newbie like me didn't know.

---

<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 8, 2019, 8:51pm UTC](https://discuss.elastic.co/t/another-way-to-stop-restart-logstash-inside-7-3-0-docker-container/194100/3 "2019-09-08T20:51:46Z")

</div>

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