Ryan Madison wrote:
Greetings,
I'm having problems with this program I need to automate the startup /
shutdown of. It won't seem to let go of the terminal that spawned it.
Even if I log in directly to the server and run the program, it seems
to hang when I attempt to log out. The program in question is an
oracle application server process monitor called oidmon. The stop
wrapper works fine.
oidmon connect=blablabla stop.
When I run that, the process is stopped, and I have no issues logging
out of the box.
When I run:
oidmon connect=blablabla start
the process runs, and I get my terminal back. Everything seems hunky
dorey. But, then when I try and disconnect from the server, it hangs.
In my process listing it still seems to be hanging on to the tty of
the session that I initiated the program with. It does this until I
log out (and get hung), then changes the controlling terminal listing
from pts/x to -.
I've tried all sorts of things. Redirecting the output to /dev/null,
running it in the background, wrapping the program call in an exec,
using job control, using bash shopt -o huponexit, etc. Anyone have any
hints?
Hmm.. have you tried 'nohup oidmon connect=(stuff) start'?
If you continue leaving yourself logged in for a period of time, does
the process hang as well?
How about oracle log files? I haven't work with Oracle's app server
stuff, but their DB software used to have pretty useful logging.
Do you get your local shell back when you exit the login shell, or does
that hang as well (seen generally when exiting with an open ssh tunnel).
-Thanks, RYAN
--
Ryan Madison
Reno, NV 89521
e. [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
aim. Alp1n1ste
yim. rhmadiso
------------------------------------------------------------------------
_______________________________________________
RLUG mailing list
[email protected]
http://lists.rlug.org/mailman/listinfo/rlug
_______________________________________________
RLUG mailing list
[email protected]
http://lists.rlug.org/mailman/listinfo/rlug