OpenVZ Forum


Home » Mailing lists » Users » init output
AW: init output [message #24872 is a reply to message #24869] Tue, 11 December 2007 16:23 Go to previous message
Dietmar Maurer is currently offline  Dietmar Maurer
Messages: 52
Registered: March 2007
Member
> To get what you want you need a slightly more elaborate 
> script, something like the following (untested):
> 
> #!/bin/sh
> 
> # file must be there - create it if we're pid 1 [ $$ = 1 ] && 
> echo >/var/log/init.log export CONSOLE=/var/log/init.log exec 
> /sbin/init.org "$@"
> 
> 
> That said, I do think we need to implement some sort of 
> serial console-like device for VEs.  We'll see what can be done here.

I already have a working init wrapper which uses a named pipe, and an
additional
logging process to read that named pipe and writes it into a file.

(init uses open without O_APPEND, so setting CONSOLE=filename will never
work)

Will post my script here as soon as it gets more stable.

- Dietmar
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: OpenVZ specific patchset
Next Topic: Kernel 2.6.18-openvz-13-39.1d1-amd64 oops
Goto Forum:
  


Current Time: Sat Jul 20 11:20:09 GMT 2024

Total time taken to generate the page: 0.02311 seconds