From: Doug L. <dl...@ho...> - 2004-03-05 14:02:06
|
I have a daemon that I would like to use to start and stop UML instances. It invokes a script which assigns some PTYs to screens and then invokes the linux instance in the 0 screen. The con0 device is redirected to the = 0 screen, con1 and con2 to respective screens and this all works hunky dory from a command line. Where I run into problems is when my daemon tries to invoke the script. I have tested the script without linux using just a bash session and everything comes up as expected. The problem is in linux. My educated guess is that it is not finding itself running in a terminal it likes (consoltype answers 'serial' under daemon control) prior to starting the console driver and fails silently (I guess you would if you couldn't figure out how to do I/O, but perhaps linux is over-analyzing at this point). Anybody conquered this problem? I have tried every combination including sticking a /bin/bash -c in front of the linux invocation (which, again, works fine from an interactive session, but fails under the daemon). Thanks for your time and consideration P.S. uml_mconsole seems to have the same problem, so maybe this is a common J.D. coding idiom. I confess I have only glanced at the code, as I have m= y own pressing issues to deal with. Thanks |