on 09-25-2017 7:34 AM
Hello
If you are not running it as a service, ctrl+c
is fine for stopping the server. But for some reason if you absolutely must kill it through a script without having it as a service, I wrote this, may be it'll help. Save it as a .bat file in your platform folder. Run whenever you want to kill the server. (It's a force kill)
@echo off
set /p wrapper_pid=<../../data/hybristomcat.lock
set /p java_pid=<../../data/hybristomcat.java.pid
IF %wrapper_pid% == [] ( goto :wrapper_error )
IF %java_pid% == [] ( goto :java_error )
goto :kill
:wrapper_error
ECHO Tanuki wrapper not running... exiting.
EXIT /b
:java_error
ECHO Java process not running... exiting.
EXIT /b
:kill
ECHO Tanuki wrapper PID: %wrapper_pid%
ECHO Java Process PID: %java_pid%
ECHO Stopping Hybris Server...
taskkill /f /pid %wrapper_pid% /pid %java_pid%
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.