# Java process does not stop

**URL:** https://discuss.elastic.co/t/java-process-does-not-stop/79391
**Category:** Logstash
**Created:** [March 21, 2017, 11:00am UTC](https://discuss.elastic.co/t/java-process-does-not-stop/79391 "2017-03-21T11:00:43Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![laurent1](https://avatars.discourse-cdn.com/v4/letter/l/858c86/32.png) [@laurent1](https://discuss.elastic.co/u/laurent1)
#### Post date: [March 21, 2017, 11:00am UTC](https://discuss.elastic.co/t/java-process-does-not-stop/79391/1 "2017-03-21T11:00:43Z")

</div>

Hello, we create a logstash custom with java process, we make a script for a rebooting of the service in question all the day below the script in question  
REM ###############  
REM # Variables #  
REM ###############

set ELASTICSEARCH\_SERVICE=FID\_ELASTICSEARCH  
set KIBANA\_SERVICE=FID\_KIBANA  
set LOGSTASH\_SERVICE=FID\_LOGSTASH  
set LOGSTASH\_SERVICE\_IO=FID\_logstash\_IO

REM ###############  
REM # Scripts #  
REM ###############

REM ###############################################  
REM Commandes de redémarrage  
REM ###############################################

net stop %KIBANA\_SERVICE%  
net stop %LOGSTASH\_SERVICE%  
REM net stop %LOGSTASH\_SERVICE\_IO%  
net stop %ELASTICSEARCH\_SERVICE%

net start %ELASTICSEARCH\_SERVICE%  
net start %LOGSTASH\_SERVICE%  
REM net start %LOGSTASH\_SERVICE\_IO%  
net start %KIBANA\_SERVICE%

but the service in question does not stop and restart it create another service in addition. have you had the same problem?

---

<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: [April 18, 2017, 11:00am UTC](https://discuss.elastic.co/t/java-process-does-not-stop/79391/2 "2017-04-18T11:00:49Z")

</div>

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