Background Process closes on logout - TechRepublic
General discussion
February 5, 2002 at 10:41 AM
peter marshall

Background Process closes on logout

by peter marshall . Updated 24 years, 4 months ago

We use a servlet engine on a Solaris box for our applications (ServletExec 3.1 from New Atlanta)
It is started by the application user from the command line
$ ./StartServletExec &
When that user logs out of the shell either by using exit or ^D amessage is displayed stating that there are background jobs running. We then execute either exit or ^D again to exit the shell.
As another user we execute ps -ef |grep java and we can see that the background process is nolonger running.
If ServeletExec is executed by root then the process will continue on logout.
I am after ways to ensure that the background process continues when the user is logged out when it is not started by root.

Thanks
Peter

This discussion is locked

All Comments