From: roland <for...@gm...> - 2004-05-19 22:10:46
|
hi sorry to disagree - but should we really use sysrq for shutting down a uml? can we really do a "clean" shutdown that way, like we do with SySV-init? afaik, sysrq should be used as an "emergency brake" - to interact with the kernel when everything else fails.... regards roland ----- Original Message ----- From: "tim doyle" <ti...@un...> Cc: <use...@li...> Sent: Wednesday, May 05, 2004 5:12 PM Subject: Re: [uml-user] best way for init-script to start/stop UML Check out "mconsole sysrq" http://user-mode-linux.sourceforge.net/UserModeLinux-HOWTO-10.html the "documentation on sysrq", on my redhat system, is under /usr/src/linux-2.4/Documentation/sysrq.txt. mconsole $umlID sysrq s mconsole $umlID sysrq u mconsole $umlID sysrq o Your mileage may vary. :} Tim Sven Köhler wrote: > hi, > > i'm about to write some init-scripts that are supposed to start/stop > UML machines if the computer started/stopped. I think i can easily > start the UML-kernel, but stopping it is a problem for me. > > I can imagine to do it with mconsole, since there is a halt-command, > but after the issuing the halt-command in mconsole, the UML-kernel > stopps running immediatly. I worry about the filesystems of the > UML-machine that might get damaged. > > How can i gracefully halt a UML-machine? Is there something more > simular to the issuing a halt-command inside the UML? > > Since using mconsole is kind of tricky, i'd like to use the > old-fashioned way with signals. What about SIGINT, SIGTERM, etc. > Is it safe to send any of those to the UML-kernel? Is any of the > signals simular to mconsole's halt-command? > > Another way could be to send the halt-command directly to the > UNIX-Socket that mconsole would use. Is there any way of soing that > from the command-line? > > Thx > Sven > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle > 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > _______________________________________________ > User-mode-linux-user mailing list > Use...@li... > https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user > -- Timothy Doyle Senior Software Engineer New Generation Media ti...@un... 707-360-1428 2455 Bennett Valley Rd. Suite C200 Santa Rosa, CA 95405 */\/\/\/\/\/\/\/\/\/\/* ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id149&alloc_id66&op=ick _______________________________________________ User-mode-linux-user mailing list Use...@li... https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user |