OpenVZ Forum


Home » Mailing lists » Users » init output
Re: init output [message #24869 is a reply to message #24861] Tue, 11 December 2007 14:29 Go to previous messageGo to previous message
rkagan is currently offline  rkagan
Messages: 11
Registered: May 2006
Location: Moscow
Junior Member
On Tue, Dec 11, 2007 at 01:51:30PM +0100, Dietmar Maurer wrote:
>  
> > tail: /var/lib/vz/root/777/var/log/init.log: file truncated
> > 
> > Any idea why? I already searched the sysvinit code sources, 
> > but found nothing there.
> 
> 'vzctl stop' does not work at all with my modified init - no processes
> killed.

vzctl stop effectively calls 'init 0'.  Now that /sbin/init is your
script, it unconditionally truncates the log file, and then calls
/sbin/init.orig again without arguments.

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.

Roman.
 
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:18:55 GMT 2024

Total time taken to generate the page: 0.02321 seconds