B4J Question jShell, kill a long running service

fransvlaarhoven

Active Member
Licensed User
Longtime User
Hello,

I have a question about what happens if one kills a shell:

- I have a java console application that acts as a server

- This application starts another application (pgp-keyserver OpenLDAP slapd) using the shell-command with timeout set to -1

- Before stopping the main java-application, I want to stop the pgp-keyserver OpenLDAP slapd using shell.killprocess

All that stuff seems to work but I'm not completely satisfied with it: when shell.killproces, is that causing a terminate signal to be sended to the process running in the shell giving that process the chance to close all recources or is it just a plain and simple "kill"?

For this application is important because not properly stopping slapd might cause problems with the database.

Many thanks for any information about this subject
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…