util-vserver:Logging

From Linux-VServer

Revision as of 17:12, 10 February 2007 by Pflanze (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Accessing vserver startup output

Where is the startup output of vservers going?

  • when using init styles others than "plain" (for example without any style setting):
    • "vserver <name> start" will not do any redirection, thus print to the current output.
    • "/etc/init.d/vservers start" will typically run lib/util-vserver/vserver-wrapper which will redirect stdin/out/err from/to the value at /etc/vservers/guest/apps/init/tty, /etc/vservers/.defaults/apps/init/tty or if neither is set, /dev/null. NOTE: just linking to a normal file will log to that file, but currently also open stdin from that file, which may have bad consequences if some programs actually reads from stdin (it may even create an endless loop appending and reading from the file).
Personal tools