Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: reopen /dev/null log
- To: nginx-ru@xxxxxxxxx
- Subject: Re: reopen /dev/null log
- From: "Alexey Kovyrin" <alexey@xxxxxxxxxxx>
- Date: Mon, 3 Mar 2008 00:32:00 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=CY0rx2ET0nneFUC5m9CsHtURuo8ZsSSi1BtasLcjQxY=; b=FA2XAXU521nw2LETrEdS9nR7qbY2yWKh9Q29LkscyB3SVwShtie/QNTd22OaM7QxPiEj3z3EA5z+3913zjHos2FvmxRPle992vyOBzWuydOkIg+cAb9J4JLRtdlEg89W/rOFpThb/wyFXrmX3XHxYSmZ1Qi/YN5Q1ctH8PBQYxc=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=ic2Rd+es4n0wm/+4Mb+9spIxs84tSgxt17pX1ds02YMy+xHoo9o6f+P368ZbVTyNsRgjjXlvTHsgQGMUs1Pha1Ty5woHsF57lChLQLj0OEyl7w9sRmXqMG8/3/PviY2infAb6FKHiDOtnA+F6ijBl+BW7Ibp69L5dIxqm/8nSyc=
- In-reply-to: <200803030815.18165.slava@xxxxxxxxxx>
- References: <001c01c87ce2$eef2c5c0$ccd85140$@ru> <200803030815.18165.slava@xxxxxxxxxx>
error_log off - это чтобы создать лог с именем off (AFAIR). off
работает как надо только для access_log.
On Mon, Mar 3, 2008 at 12:15 AM, Viatcheslav E. Kouznetsov
<slava@xxxxxxxxxx> wrote:
> Если мне не изменяет мой склероз, в локейшне
> следует ставить
> error_log off;
>
> Проверь.
>
>
>
> On Monday 03 March 2008 06:59, Den Ivanov wrote:
> > Nginx 0.5.35, Solaris 10 x64
> >
> > В конфиге используется <error_log /dev/null;> для выключения
> > логирования в некоторых location. При переоткрытии логов в error.log
> > появляются следующие сообщения:
> >
> >
> >
> > 2008/03/03 03:40:39 [notice] 2447#0: signal 16 (SIGUSR1) received,
> > reopening logs
> >
> > 2008/03/03 03:40:39 [notice] 2447#0: reopening logs
> >
> > 2008/03/03 03:40:39 [emerg] 2447#0: chown("/dev/null", 80) failed (1: Not
> > owner)
> >
> > 2008/03/03 03:40:39 [emerg] 2447#0: fcntl(FD_CLOEXEC) "/dev/null" failed
> > (9: Bad file number)
> >
> > 2008/03/03 03:40:39 [emerg] 2447#0: close() "/dev/null" failed (9: Bad file
> > number)
> >
> > 2008/03/03 03:40:39 [notice] 3723#0: reopening logs
> >
> > 2008/03/03 03:40:39 [notice] 3724#0: reopening logs
> >
> >
> >
> > --
> >
> > С Уважением,
> >
> > Денис Сергеевич Иванов
> >
> > ООО "Владнет"
> >
> > +7-914-790-55-69
>
--
Alexey Kovyrin
http://kovyrin.info/
|