or you can replace /sbin/init with some script adding this to env
and running original init binary.

Kirill

Dietmar Maurer wrote:
> But I cant do that with current vzctl, instead I need to modify the
> source?
> 
> env.c 301: char *envp[] = {"HOME=/", "TERM=linux",
> "CONSOLE=/var/log/init.log", NULL}; 
> 
> Is that the way to do it?
> 
> - Dietmar
> 
> 
>>you can run VE /sbin/init with environment variable CONSOLE 
>>set to some file.
>>in this case it's output will get into file.
>># man init
> 
> 
> 
> _______________________________________________
> Users mailing list
> [email protected]
> https://openvz.org/mailman/listinfo/users
> 

_______________________________________________
Users mailing list
[email protected]
https://openvz.org/mailman/listinfo/users

Reply via email to