<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 face=Arial><span lang=CS style='font-size:10.0pt;
font-family:Arial'>Hi,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=CS style='font-size:10.0pt;
font-family:Arial'>I use syslog-ng-1.6.9-1. When the server should be killed by
HUP signal (logrotate ) nothing happens (no time change in process table) <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=CS style='font-size:10.0pt;
font-family:Arial'>I attached list of HUP action and strace of the action.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=CS style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=CS style='font-size:10.0pt;
font-family:Arial'>The daemon uses pipes() and udp() as the sources.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=CS style='font-size:10.0pt;
font-family:Arial'>Do you have any idea?<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=CS style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=CS style='font-size:10.0pt;
font-family:Arial'>Thanks for your help.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=CS style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=CS style='font-size:10.0pt;
font-family:Arial'>Regards<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=CS style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=CS style='font-size:10.0pt;
font-family:Arial'>Lumir Unzeitig<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=CS style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=CS style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=CS style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=CS style='font-size:10.0pt;
font-family:Arial'>[root@server root]# ps -ef|grep syslog-n[g]<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=CS style='font-size:10.0pt;
font-family:Arial'>26
4893 1 0 15:06
? 00:00:00 /sbin/syslog-ng -p
/var/run/syslog-ng.pid -u syslog-ng -g syslog-ng -C /service/log<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=CS style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=CS style='font-size:10.0pt;
font-family:Arial'>[root@server root]# kill -HUP 4893<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=CS style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=CS style='font-size:10.0pt;
font-family:Arial'>[root@server root]# ps -ef|grep syslog-n[g]<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=CS style='font-size:10.0pt;
font-family:Arial'>26
4893 1 0 15:06
? 00:00:00 /sbin/syslog-ng -p
/var/run/syslog-ng.pid -u syslog-ng -g syslog-ng -C /service/log<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=CS style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=CS style='font-size:10.0pt;
font-family:Arial'>[root@server root]# strace kill -HUP 4893<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=CS style='font-size:10.0pt;
font-family:Arial'>execve("/bin/kill", ["kill",
"-HUP", "4893"], [/* 29 vars */]) = 0<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=CS style='font-size:10.0pt;
font-family:Arial'>uname({sys="Linux", node="server", ...})
= 0<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=CS style='font-size:10.0pt;
font-family:Arial'>brk(0)
= 0x8345000<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=CS style='font-size:10.0pt;
font-family:Arial'>open("/etc/ld.so.preload",
O_RDONLY) = -1 ENOENT (No such file or directory)<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=CS style='font-size:10.0pt;
font-family:Arial'>open("/etc/ld.so.cache",
O_RDONLY) = 3<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=CS style='font-size:10.0pt;
font-family:Arial'>fstat64(3, {st_mode=S_IFREG|0644, st_size=77678, ...}) = 0<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=CS style='font-size:10.0pt;
font-family:Arial'>old_mmap(NULL, 77678, PROT_READ, MAP_PRIVATE, 3, 0) =
0xb75e3000<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=CS style='font-size:10.0pt;
font-family:Arial'>close(3)
= 0<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=CS style='font-size:10.0pt;
font-family:Arial'>open("/lib/tls/libc.so.6",
O_RDONLY) = 3<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=CS style='font-size:10.0pt;
font-family:Arial'>read(3,
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200X\1"..., 512) =
512<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=CS style='font-size:10.0pt;
font-family:Arial'>fstat64(3, {st_mode=S_IFREG|0755, st_size=1572440, ...}) = 0<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=CS style='font-size:10.0pt;
font-family:Arial'>old_mmap(NULL, 1279916, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3,
0) = 0x51c000<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=CS style='font-size:10.0pt;
font-family:Arial'>old_mmap(0x64f000, 12288, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED, 3, 0x132000) = 0x64f000<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=CS style='font-size:10.0pt;
font-family:Arial'>old_mmap(0x652000, 10156, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x652000<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=CS style='font-size:10.0pt;
font-family:Arial'>close(3)
=
0<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=CS style='font-size:10.0pt;
font-family:Arial'>old_mmap(NULL, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb75e2000<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=CS style='font-size:10.0pt;
font-family:Arial'>set_thread_area({entry_number:-1 -> 6,
base_addr:0xb75e2500, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0,
limit_in_pages:1, seg_not_present:0, useable:1}) = 0<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=CS style='font-size:10.0pt;
font-family:Arial'>munmap(0xb75e3000,
77678)
= 0<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=CS style='font-size:10.0pt;
font-family:Arial'>brk(0)
= 0x8345000<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=CS style='font-size:10.0pt;
font-family:Arial'>brk(0x8366000)
= 0x8366000<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=CS style='font-size:10.0pt;
font-family:Arial'>brk(0)
= 0x8366000<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=CS style='font-size:10.0pt;
font-family:Arial'>open("/usr/lib/locale/locale-archive",
O_RDONLY|O_LARGEFILE) = 3<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=CS style='font-size:10.0pt;
font-family:Arial'>fstat64(3, {st_mode=S_IFREG|0644, st_size=32148976, ...}) =
0<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=CS style='font-size:10.0pt;
font-family:Arial'>mmap2(NULL, 2097152, PROT_READ, MAP_PRIVATE, 3, 0) =
0xb73e2000<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=CS style='font-size:10.0pt;
font-family:Arial'>close(3)
= 0<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=CS style='font-size:10.0pt;
font-family:Arial'>kill(4893,
SIGHUP)
= 0<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=CS style='font-size:10.0pt;
font-family:Arial'>exit_group(0)
= ?<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=CS style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=CS style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=CS style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
</div>
</body>
</html>