[NTLUG:Discuss] Weird Script behaviour -- killing script does not kill child processes - Why?
Stephen Davidson
gorky at freenet.carleton.ca
Tue Dec 4 18:22:58 CST 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Greetings.
I've been working on a piece of Server software and have been having fun
and games with startproc.
The general idea:
Due to a fairly complex command line, I have a shell script that is
actually launching the server process. The server process is a Java
process running as a child of that shell script.
The minor issue - even though the -p /file.pid is used, no pid file is
getting created.
The MAJOR issue - when the Shell script that launched the java process
is killed, either by startproc or otherwise, the child Java Process is
NOT killed.
Any ideas on how to kill a child process of a command line script
automatically, when there is no PID stored during startup?
- -Steve
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
iD8DBQFHVe9iPtiPEDq7o8YRAhC6AKC7PXT5XxxCdurQrURktdunUisfMACggbQA
qRjEC0Lc74SvVk0MlZErmeE=
=xdS2
-----END PGP SIGNATURE-----
More information about the Discuss
mailing list