Date: Sat, 07 Jul 2012 16:08:18 +0400 From: Ilya A. Arkhipov <ruM1cRO@yandex.ru> To: freebsd-current@freebsd.org Subject: R flag in newsyslog works incorrect Message-ID: <782661341662898@web8f.yandex.ru>
next in thread | raw e-mail | index | archive | help
------==--bound.78267.web8f.yandex.ru Content-Transfer-Encoding: 7bit Content-Type: text/plain Hi All, Looks as R flag with archiving works incorrect, for example: root@mhome:/tmp/test# less nsl.cfg /tmp/test/test.log micro:wheel 640 20 10 * BZR /tmp/test/test.sh root@mhome:/tmp/test# less test.sh echo atata root@mhome:/tmp/test# newsyslog -vF -f nsl.cfg Processing nsl.cfg /tmp/test/test.log <20Z>: size (Kb): 1 [10] --> trimming log.... Signal all daemon process(es)... Run command: /tmp/test/test.sh 1 atata Pause 10 seconds to allow daemon(s) to close log file(s) Compress all rotated log file(s)... newsyslog: log /tmp/test/test.log.0 not compressed because daemon(s) not notified http://micro.heavennet.ru/patch/newsyslog.patch fix it. root@mhome:/tmp/test# newsyslog -vF -f nsl.cfg Processing nsl.cfg /tmp/test/test.log <20Z>: size (Kb): 68 [10] --> trimming log.... Signal all daemon process(es)... Run command: /tmp/test/test.sh 1 atata Pause 10 seconds to allow daemon(s) to close log file(s) Compress all rotated log file(s)... Could you please review and fix it. Thanks in advance! -- With Best Regards, Ilya A. Arkhipov ------==--bound.78267.web8f.yandex.ru Content-Disposition: attachment; filename="newsyslog.patch" Content-Transfer-Encoding: base64 Content-Type: text/plain; name="newsyslog.patch" LS0tIG5ld3N5c2xvZy5jX29sZAkyMDEyLTA3LTA3IDE0OjQ5OjQxLjUwMjEzNTYwOCArMDAwMAor KysgbmV3c3lzbG9nLmMJMjAxMi0wNy0wNyAxNDo0ODowOS40MjUxMzY5OTggKzAwMDAKQEAgLTE5 NzIsNyArMTk3Miw3IEBACiAJZWxzZQogCQlwZ21fbmFtZSsrOwogCi0JaWYgKHp3b3JrLT56d19z d29yayAhPSBOVUxMICYmIHp3b3JrLT56d19zd29yay0+c3dfcGlkb2sgPD0gMCkgeworCWlmICh6 d29yay0+endfc3dvcmsgIT0gTlVMTCAmJiB6d29yay0+endfc3dvcmstPnN3X3BpZG9rIDw9IDAg JiYgIXp3b3JrLT56d19zd29yay0+cnVuX2NtZCApIHsKIAkJd2FybngoCiAJCSAgICAibG9nICVz IG5vdCBjb21wcmVzc2VkIGJlY2F1c2UgZGFlbW9uKHMpIG5vdCBub3RpZmllZCIsCiAJCSAgICB6 d29yay0+endfZm5hbWUpOwo= ------==--bound.78267.web8f.yandex.ru--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?782661341662898>