Re: No logging from within chroot

From: Ulric Eriksson <ulric_at_siag.nu>
Date: Mon, 23 Oct 2006 07:29:22 +0200 (CEST)

On Mon, 23 Oct 2006, Nathan Butcher wrote:

> Any way I can get logging to work with chroot?

The pen user must be able to create the log file. There is no
need for any libraries or such nastiness.

Here's an example, all commands done as root:

useradd -m pen
pen -j /home/pen -l /pen.log -u pen -p /pen.pid 80 siag.nu:80

(do some surfing to http://localhost/pen/)

kill -HUP `cat /home/pen/pen.pid`
cat /home/pen/pen.log

127.0.0.1 1161581033 217.151.192.87 GET /pen/ HTTP/1.1
127.0.0.1 1161581033 217.151.192.87 GET /styles.css HTTP/1.1
127.0.0.1 1161581033 217.151.192.87 GET /img/grbg.png HTTP/1.1
127.0.0.1 1161581033 217.151.192.87 GET /banners/36524.gif HTTP/1.1
127.0.0.1 1161581033 217.151.192.87 GET /img/valid-html401.png HTTP/1.1
127.0.0.1 1161581033 217.151.192.87 GET /img/powered.gif HTTP/1.1
127.0.0.1 1161581033 217.151.192.87 GET /favicon.ico HTTP/1.1

Ulric
Received on Mon Oct 23 2006 - 07:29:23 CEST

This archive was generated by hypermail 2.2.0 : Mon Oct 23 2006 - 07:29:25 CEST