Hi all,

here is an init wrapper to capture the output from init. It uses a named
pipe, and an additional logging process to read that named pipe and
writes it into a file.

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


compile with:
> gcc -O2 -Wall -lc vzinit.c -o vzinit

Copy it into the VE:
> mv VPSDIR/sbin/init VPSDIR/sbin/init.org
> cp vzinit VPSDIR/sbin/init 

the start the VE:

> vzctl start 777
> tail -100f VPSDIR/var/log/init.log

What do you think? Should I write a patch to vzctl, or is there a better
way to do it?

- Dietmar

Attachment: vzinit.c
Description: vzinit.c

_______________________________________________
Devel mailing list
[email protected]
https://openvz.org/mailman/listinfo/devel

Reply via email to