java with 9241 PID is the main process which runs my whole application.
if i have to say in one word, java process has the whole control of my app.
shell_script_bg with 9241 PID is the shell script, which starts the java command.
If i kill the java PID with kill -9 9241 , which shuts my complete application. But if i kill shell_script_bg pid, it not making my application go down.
My requirement is if i kill one PID it should intern kill java PID as well.
what r the changes i need to make in my shell script or any where else.
i mean to say if i kill the PID 9240 which belong to shell_script_bg, this intern should kill java PID 9241.
i killed the process shell_script_bg using kill -9 9240, shell_script_bg is the shell script code,
now my question is what is the code change i have to make in shell script, so that if i kill it's process ID then that should kill some other process ID (java's)internally.