> 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 _______________________________________________ Users mailing list [email protected] https://openvz.org/mailman/listinfo/users
