🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #81049

Re: Logging failures

#81049
From: Ray Banana
Date: Sun, 17 May 2009 14:18
50 lines
4211 bytes
Thus spake "John F. Morse" <xanadu.bbs@example.invalid>
 
> Thank you for the "fix" and for entering it on the Ubuntu bugs site.
> Perhaps they will eventually get around to making a fix "official" so it
> won't be overwritten if the package is later upgraded.
> However, there are still problems....
> The following day for optima5 I added the "&& !$opt_all" fix shown in
> the quoted text above.
> 125 # These files are handled by news.daily from INN, so we ignore them
> 126 # next if (!$opt_news && ($pat =~ /news\.(\*|crit|err|info|notice)/));
> 127 # Above commented out 20090513 and following added (Ray Banana edit)
> 128 next if (!$opt_news && !$opt_news && ($pat =~
> /news\.(\*|crit|err|info|notice)/));
> Optima5 also appears to be logging correctly, but it now has a
> permissions problem as indicated in the Daily Usenet report:
> -rw-r--r--  1 syslog adm       0 2009-05-14 00:00 news.crit
> -rw-r--r--  1 syslog adm       0 2009-05-14 00:00 news.err
> -rw-r--r--  1 syslog adm  134398 2009-05-15 02:32 news.notice

syslog seems to be messing around with the news.* logs, when it is
restarted:

ls -lart /var/log/news/news.*
-rw-r--r-- 1 news news   3080 2009-05-12 06:36 /var/log/news/news.crit
-rw-r--r-- 1 news news  99372 2009-05-17 15:28 /var/log/news/news.err
-rw-r--r-- 1 news news 428022 2009-05-17 15:38 /var/log/news/news.notice

It does not change them when HUPed:

kill -HUP 6704
root@hubhg01:~# ls -lart /var/log/news/news.*
-rw-r--r-- 1 news news   3080 2009-05-12 06:36 /var/log/news/news.crit
-rw-r--r-- 1 news news  99372 2009-05-17 15:28 /var/log/news/news.err
-rw-r--r-- 1 news news 428022 2009-05-17 15:38 /var/log/news/news.notice

/etc/init.d/sysklogd restart
 * Restarting system log daemon...                                  [ OK ] 
root@hubhg01:~# ls -lart /var/log/news/news.*
-rw-r--r-- 1 syslog adm   3080 2009-05-12 06:36 /var/log/news/news.crit
-rw-r--r-- 1 syslog adm  99372 2009-05-17 15:28 /var/log/news/news.err
-rw-r--r-- 1 syslog adm 428022 2009-05-17 15:38 /var/log/news/news.notice

So you will be OK with my change as long as you don't *restart* sysklogd
or reboot the machine <SIGH>

I need to take a closer look at this behaviour ...

-- 
Time flies like an arrow, fruit flies like a Banana.
http://news.motzarella.org
Technical Details
Message-ID: <80vdnzu827.fsf@banana.shacknet.nu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.straub-nv.de!feeder.motzarella.org!news.motzarella.org!banana.shacknet.nu!motzarella.org!not-for-mail
References: <gts0rg$v7n$1@optima7.xanadu-bbs.net> <gu4ea9$ath$1@news.trigofacile.com> <gu6ksc$oq7$1@optima7.xanadu-bbs.net> <gu6uqv$1ap$1@news.trigofacile.com> <gu804a$4mb$1@optima7.xanadu-bbs.net> <gu8ggp$gic$1@news.trigofacile.com> <gu90j1$d21$1@optima7.xanadu-bbs.net> <gu9nvk$kse$1@news.trigofacile.com> <guc1rv$6qp$1@optima7.xanadu-bbs.net> <8063g6memf.fsf@banana.shacknet.nu> <guch30$aoq$1@optima7.xanadu-bbs.net> <80d4ae2k1j.fsf@banana.shacknet.nu> <gumema$ui2$1@optima7.xanadu-bbs.net>

Show Full Headers
Complete Article Headers
Message-ID: <80vdnzu827.fsf@banana.shacknet.nu>
Subject: Re: Logging failures
Date: Sun, 17 May 2009 16:18:24 +0200
From: Ray Banana <rayban@banana.shacknet.nu>
References: <gts0rg$v7n$1@optima7.xanadu-bbs.net> <gu4ea9$ath$1@news.trigofacile.com> <gu6ksc$oq7$1@optima7.xanadu-bbs.net> <gu6uqv$1ap$1@news.trigofacile.com> <gu804a$4mb$1@optima7.xanadu-bbs.net> <gu8ggp$gic$1@news.trigofacile.com> <gu90j1$d21$1@optima7.xanadu-bbs.net> <gu9nvk$kse$1@news.trigofacile.com> <guc1rv$6qp$1@optima7.xanadu-bbs.net> <8063g6memf.fsf@banana.shacknet.nu> <guch30$aoq$1@optima7.xanadu-bbs.net> <80d4ae2k1j.fsf@banana.shacknet.nu> <gumema$ui2$1@optima7.xanadu-bbs.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.straub-nv.de!feeder.motzarella.org!news.motzarella.org!banana.shacknet.nu!motzarella.org!not-for-mail
Newsgroups: news.software.nntp
Organization: A noiseless patient spider
Lines: 50
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: banana.shacknet.nu 1242569965 71159 10.1.30.101 (17 May 2009 14:19:25
 GMT)
X-Complaints-To: abuse@banana.shacknet.nu
X-Auth-Sender: Ray.Banana
Cancel-Lock: sha1:GNY/7KQ/elPitxs61Mb8rVg7I0c=
User-Agent: Plonkenlights
X-PGP-Sig: 2.6.3ia Subject,Message-ID,Date,From,User-Agent
 iQCVAwUBShAc6hFgDSXFGJ/lAQFiVwP/RvP5FepTpD2E/ENAwA94chfLIdKVjmJ6
 miFog22dRFdJr1TZZwhN4HBEuipKOcxoF9530DM08iPFQmxmPDkedamic9FgwPp1
 0W0PE2rqsC1uujm30Om/7vydWy5glu2wuD2nLLLkAvMfHSMWVwc4rkUnzSy/9CVO
 sfcUgdT94ok= =S9YR
X-Attribution: Ray Banana