title: How to stop/start logstash service running in docker
body: <p>I'm trying to figure out how logstash works/run inside docker, and I'm stuck with simple thing like starting and stoping logstash. </p>
  
  <p>I have started logstash docker container with simple run</p>
  
  <pre><code>docker run -it --name l2 logstash
  </code></pre>
  
  <p>and with result: </p>
  
  <pre><code> [Api Webserver] INFO  logstash.agent - Successfully started Logstash API endpoint {:port=&gt;9600}
  </code></pre>
  
  <p>Next thing is runing /bin/bash with exec command, to get inside running container. </p>
  
  <pre><code>docker exec -it l2 /bin/bash 
  root@1b55d3a40d3f:/# 
  </code></pre>
  
  <p>Listing services status, shows that there is no logstash service running. 
  Where can I find logstash service and stop/start? </p>
  
  <pre><code>root@1b55d3a40d3f:/# service --status-all 
   [ - ]  bootlogs
   [ - ]  bootmisc.sh
   [ - ]  checkfs.sh
   [ - ]  checkroot-bootclean.sh
   [ - ]  checkroot.sh
   [ - ]  dbus
   [ - ]  hostname.sh
   [ ? ]  hwclock.sh
   [ - ]  killprocs
   [ - ]  motd
   [ - ]  mountall-bootclean.sh
   [ - ]  mountall.sh
   [ - ]  mountdevsubfs.sh
   [ - ]  mountkernfs.sh
   [ - ]  mountnfs-bootclean.sh
   [ - ]  mountnfs.sh
   [ - ]  procps
   [ - ]  rc.local
   [ - ]  rmnologin
   [ - ]  sendsigs
   [ + ]  udev
   [ ? ]  udev-finish
   [ - ]  umountfs
   [ - ]  umountnfs.sh
   [ - ]  umountroot
   [ - ]  urandom
   [ - ]  x11-common
  </code></pre>