<div dir="ltr"><div><div>Hi there,<br><br></div><div>Sometimes when stopping PGPool-II, it fails to remove the socket files, preventing startup (socket already in use).<br>/var/run/pgpool/.s.PGSQL.9898<br>/var/run/pgpool/.s.PGSQL.9999<br><br></div><div>I&#39;ve taken a trace below. Unfortunately I wiped away my earlier traces showing the correct unlinking (I&#39;ll see about capturing these again) for comparison.<br></div><div><br></div><div>This was done whilst pgpool was under mild load (not sure yet if it only occurs under load).<br></div><div><br>24036 select(8, [7], NULL, NULL, {0, 639203}) = 0 (Timeout)<br>24036 rt_sigprocmask(SIG_SETMASK, ~[ILL TRAP ABRT BUS FPE SEGV CONT SYS RTMIN RT_1], NULL, 8) = 0<br>24036 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0<br>24036 select(8, [7], NULL, NULL, {3, 0}) = 0 (Timeout)<br>24036 rt_sigprocmask(SIG_SETMASK, ~[ILL TRAP ABRT BUS FPE SEGV CONT SYS RTMIN RT_1], NULL, 8) = 0<br>24036 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0<br>24036 select(8, [7], NULL, NULL, {3, 0}) = ? ERESTARTNOHAND (To be restarted)<br>24036 --- SIGCHLD (Child exited) @ 0 (0) ---<br>24036 rt_sigprocmask(SIG_SETMASK, ~[ILL TRAP ABRT BUS FPE SEGV CONT SYS RTMIN RT_1], NULL, 8) = 0<br>24036 write(8, &quot;\0&quot;, 1)                 = 1<br>24036 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0<br>24036 rt_sigreturn(0x2)                 = -1 EINTR (Interrupted system call)<br>24036 rt_sigprocmask(SIG_SETMASK, ~[ILL TRAP ABRT BUS FPE SEGV CONT SYS RTMIN RT_1], NULL, 8) = 0<br>24036 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0<br>24036 select(8, [7], NULL, NULL, {3, 0}) = 1 (in [7], left {2, 999998})<br>24036 read(7, &quot;\0&quot;, 1)                  = 1<br>24036 rt_sigprocmask(SIG_SETMASK, ~[ILL TRAP ABRT BUS FPE SEGV CONT SYS RTMIN RT_1], NULL, 8) = 0<br>24036 wait4(-1, [{WIFEXITED(s) &amp;&amp; WEXITSTATUS(s) == 0}], WNOHANG, NULL) = 24071<br>24036 stat(&quot;/etc/localtime&quot;, {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0<br>24036 write(2, &quot;2015-06-22 12:14:43: pid 24036: LOG:  worker child process with pid: 24071 exits with status 0\n&quot;, 95) = 95<br>24036 stat(&quot;/etc/localtime&quot;, {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0<br>24036 write(2, &quot;2015-06-22 12:14:43: pid 24036: LOG:  worker child process with pid: 24071 exited with success and will not be restarted\n&quot;, 121) = 121<br>24036 wait4(-1, [{WIFEXITED(s) &amp;&amp; WEXITSTATUS(s) == 0}], WNOHANG, NULL) = 24070<br>24036 stat(&quot;/etc/localtime&quot;, {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0<br>24036 write(2, &quot;2015-06-22 12:14:43: pid 24036: LOG:  PCP child process with pid: 24070 exits with status 0\n&quot;, 92) = 92<br>24036 stat(&quot;/etc/localtime&quot;, {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0<br>24036 write(2, &quot;2015-06-22 12:14:43: pid 24036: LOG:  PCP child process with pid: 24070 exited with success and will not be restarted\n&quot;, 118) = 118<br>24036 wait4(-1, [{WIFEXITED(s) &amp;&amp; WEXITSTATUS(s) == 0}], WNOHANG, NULL) = 24068<br>24036 stat(&quot;/etc/localtime&quot;, {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0<br>24036 write(2, &quot;2015-06-22 12:14:43: pid 24036: LOG:  child process with pid: 24068 exits with status 0\n&quot;, 88) = 88<br>24036 stat(&quot;/etc/localtime&quot;, {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0<br>24036 write(2, &quot;2015-06-22 12:14:43: pid 24036: LOG:  child process with pid: 24068 exited with success and will not be restarted\n&quot;, 114) = 114<br>24036 wait4(-1, 0x7fff4da2886c, WNOHANG, NULL) = 0<br>24036 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0<br>24036 --- SIGCHLD (Child exited) @ 0 (0) ---<br>24036 rt_sigprocmask(SIG_SETMASK, ~[ILL TRAP ABRT BUS FPE SEGV CONT SYS RTMIN RT_1], NULL, 8) = 0<br>24036 write(8, &quot;\0&quot;, 1)                 = 1<br>24036 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0<br>24036 rt_sigreturn(0x2)                 = 0<br>24036 select(8, [7], NULL, NULL, {3, 0}) = 1 (in [7], left {2, 999998})<br>24036 read(7, &quot;\0&quot;, 1)                  = 1<br>24036 rt_sigprocmask(SIG_SETMASK, ~[ILL TRAP ABRT BUS FPE SEGV CONT SYS RTMIN RT_1], NULL, 8) = 0<br>24036 wait4(-1, 0x7fff4da2886c, WNOHANG, NULL) = 0<br>24036 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0<br>24036 select(8, [7], NULL, NULL, {3, 0}) = ? ERESTARTNOHAND (To be restarted)<br>24036 --- SIGCHLD (Child exited) @ 0 (0) ---<br>24036 rt_sigprocmask(SIG_SETMASK, ~[ILL TRAP ABRT BUS FPE SEGV CONT SYS RTMIN RT_1], NULL, 8) = 0<br>24036 write(8, &quot;\0&quot;, 1)                 = 1<br>24036 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0<br>24036 rt_sigreturn(0x2)                 = -1 EINTR (Interrupted system call)<br>24036 rt_sigprocmask(SIG_SETMASK, ~[ILL TRAP ABRT BUS FPE SEGV CONT SYS RTMIN RT_1], NULL, 8) = 0<br>24036 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0<br>24036 select(8, [7], NULL, NULL, {3, 0}) = 1 (in [7], left {2, 999998})<br>24036 read(7, &quot;\0&quot;, 1)                  = 1<br>24036 rt_sigprocmask(SIG_SETMASK, ~[ILL TRAP ABRT BUS FPE SEGV CONT SYS RTMIN RT_1], NULL, 8) = 0<br>24036 wait4(-1, [{WIFEXITED(s) &amp;&amp; WEXITSTATUS(s) == 0}], WNOHANG, NULL) = 24065<br>24036 stat(&quot;/etc/localtime&quot;, {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0<br>24036 write(2, &quot;2015-06-22 12:14:43: pid 24036: LOG:  child process with pid: 24065 exits with status 0\n&quot;, 88) = 88<br>24036 stat(&quot;/etc/localtime&quot;, {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0<br>24036 write(2, &quot;2015-06-22 12:14:43: pid 24036: LOG:  child process with pid: 24065 exited with success and will not be restarted\n&quot;, 114) = 114<br>24036 wait4(-1, 0x7fff4da2886c, WNOHANG, NULL) = 0<br>24036 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0<br>24036 select(8, [7], NULL, NULL, {3, 0}) = ? ERESTARTNOHAND (To be restarted)<br>24036 --- SIGCHLD (Child exited) @ 0 (0) ---<br>24036 rt_sigprocmask(SIG_SETMASK, ~[ILL TRAP ABRT BUS FPE SEGV CONT SYS RTMIN RT_1], NULL, 8) = 0<br>24036 write(8, &quot;\0&quot;, 1)                 = 1<br>24036 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0<br>24036 rt_sigreturn(0x2)                 = -1 EINTR (Interrupted system call)<br>24036 rt_sigprocmask(SIG_SETMASK, ~[ILL TRAP ABRT BUS FPE SEGV CONT SYS RTMIN RT_1], NULL, 8) = 0<br>24036 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0<br>24036 select(8, [7], NULL, NULL, {3, 0}) = 1 (in [7], left {2, 999998})<br>24036 read(7, &quot;\0&quot;, 1)                  = 1<br>24036 rt_sigprocmask(SIG_SETMASK, ~[ILL TRAP ABRT BUS FPE SEGV CONT SYS RTMIN RT_1], NULL, 8) = 0<br>24036 wait4(-1, [{WIFEXITED(s) &amp;&amp; WEXITSTATUS(s) == 0}], WNOHANG, NULL) = 24061<br>24036 stat(&quot;/etc/localtime&quot;, {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0<br>24036 write(2, &quot;2015-06-22 12:14:43: pid 24036: LOG:  child process with pid: 24061 exits with status 0\n&quot;, 88) = 88<br>24036 stat(&quot;/etc/localtime&quot;, {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0<br>24036 write(2, &quot;2015-06-22 12:14:43: pid 24036: LOG:  child process with pid: 24061 exited with success and will not be restarted\n&quot;, 114) = 114<br>24036 wait4(-1, [{WIFEXITED(s) &amp;&amp; WEXITSTATUS(s) == 0}], WNOHANG, NULL) = 24063<br>24036 stat(&quot;/etc/localtime&quot;, {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0<br>24036 write(2, &quot;2015-06-22 12:14:43: pid 24036: LOG:  child process with pid: 24063 exits with status 0\n&quot;, 88) = 88<br>24036 stat(&quot;/etc/localtime&quot;, {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0<br>24036 write(2, &quot;2015-06-22 12:14:43: pid 24036: LOG:  child process with pid: 24063 exited with success and will not be restarted\n&quot;, 114) = 114<br>24036 wait4(-1, [{WIFEXITED(s) &amp;&amp; WEXITSTATUS(s) == 0}], WNOHANG, NULL) = 24056<br>24036 stat(&quot;/etc/localtime&quot;, {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0<br>24036 write(2, &quot;2015-06-22 12:14:43: pid 24036: LOG:  child process with pid: 24056 exits with status 0\n&quot;, 88) = 88<br>24036 stat(&quot;/etc/localtime&quot;, {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0<br>24036 write(2, &quot;2015-06-22 12:14:43: pid 24036: LOG:  child process with pid: 24056 exited with success and will not be restarted\n&quot;, 114) = 114<br>24036 wait4(-1, [{WIFEXITED(s) &amp;&amp; WEXITSTATUS(s) == 0}], WNOHANG, NULL) = 24058<br>24036 stat(&quot;/etc/localtime&quot;, {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0<br>24036 write(2, &quot;2015-06-22 12:14:43: pid 24036: LOG:  child process with pid: 24058 exits with status 0\n&quot;, 88) = 88<br>24036 stat(&quot;/etc/localtime&quot;, {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0<br>24036 write(2, &quot;2015-06-22 12:14:43: pid 24036: LOG:  child process with pid: 24058 exited with success and will not be restarted\n&quot;, 114) = 114<br>24036 wait4(-1, [{WIFEXITED(s) &amp;&amp; WEXITSTATUS(s) == 0}], WNOHANG, NULL) = 24060<br>24036 stat(&quot;/etc/localtime&quot;, {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0<br>24036 write(2, &quot;2015-06-22 12:14:43: pid 24036: LOG:  child process with pid: 24060 exits with status 0\n&quot;, 88) = 88<br>24036 stat(&quot;/etc/localtime&quot;, {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0<br>24036 write(2, &quot;2015-06-22 12:14:43: pid 24036: LOG:  child process with pid: 24060 exited with success and will not be restarted\n&quot;, 114) = 114<br>24036 wait4(-1, [{WIFEXITED(s) &amp;&amp; WEXITSTATUS(s) == 0}], WNOHANG, NULL) = 24057<br>24036 stat(&quot;/etc/localtime&quot;, {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0<br>24036 write(2, &quot;2015-06-22 12:14:43: pid 24036: LOG:  child process with pid: 24057 exits with status 0\n&quot;, 88) = 88<br>24036 stat(&quot;/etc/localtime&quot;, {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0<br>24036 write(2, &quot;2015-06-22 12:14:43: pid 24036: LOG:  child process with pid: 24057 exited with success and will not be restarted\n&quot;, 114) = 114<br>24036 wait4(-1, [{WIFEXITED(s) &amp;&amp; WEXITSTATUS(s) == 0}], WNOHANG, NULL) = 24053<br>24036 stat(&quot;/etc/localtime&quot;, {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0<br>24036 write(2, &quot;2015-06-22 12:14:43: pid 24036: LOG:  child process with pid: 24053 exits with status 0\n&quot;, 88) = 88<br>24036 stat(&quot;/etc/localtime&quot;, {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0<br>24036 write(2, &quot;2015-06-22 12:14:43: pid 24036: LOG:  child process with pid: 24053 exited with success and will not be restarted\n&quot;, 114) = 114<br>24036 wait4(-1, [{WIFEXITED(s) &amp;&amp; WEXITSTATUS(s) == 0}], WNOHANG, NULL) = 24054<br>24036 stat(&quot;/etc/localtime&quot;, {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0<br>24036 write(2, &quot;2015-06-22 12:14:43: pid 24036: LOG:  child process with pid: 24054 exits with status 0\n&quot;, 88) = 88<br>24036 stat(&quot;/etc/localtime&quot;, {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0<br>24036 write(2, &quot;2015-06-22 12:14:43: pid 24036: LOG:  child process with pid: 24054 exited with success and will not be restarted\n&quot;, 114) = 114<br>24036 wait4(-1, [{WIFEXITED(s) &amp;&amp; WEXITSTATUS(s) == 0}], WNOHANG, NULL) = 24055<br>24036 stat(&quot;/etc/localtime&quot;, {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0<br>24036 write(2, &quot;2015-06-22 12:14:43: pid 24036: LOG:  child process with pid: 24055 exits with status 0\n&quot;, 88) = 88<br>24036 stat(&quot;/etc/localtime&quot;, {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0<br>24036 write(2, &quot;2015-06-22 12:14:43: pid 24036: LOG:  child process with pid: 24055 exited with success and will not be restarted\n&quot;, 114) = 114<br>24036 wait4(-1, [{WIFEXITED(s) &amp;&amp; WEXITSTATUS(s) == 0}], WNOHANG, NULL) = 24052<br>24036 stat(&quot;/etc/localtime&quot;, {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0<br>24036 write(2, &quot;2015-06-22 12:14:43: pid 24036: LOG:  child process with pid: 24052 exits with status 0\n&quot;, 88) = 88<br>24036 stat(&quot;/etc/localtime&quot;, {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0<br>24036 write(2, &quot;2015-06-22 12:14:43: pid 24036: LOG:  child process with pid: 24052 exited with success and will not be restarted\n&quot;, 114) = 114<br>24036 wait4(-1, [{WIFEXITED(s) &amp;&amp; WEXITSTATUS(s) == 0}], WNOHANG, NULL) = 24049<br>24036 stat(&quot;/etc/localtime&quot;, {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0<br>24036 write(2, &quot;2015-06-22 12:14:43: pid 24036: LOG:  child process with pid: 24049 exits with status 0\n&quot;, 88) = 88<br>24036 stat(&quot;/etc/localtime&quot;, {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0<br>24036 write(2, &quot;2015-06-22 12:14:43: pid 24036: LOG:  child process with pid: 24049 exited with success and will not be restarted\n&quot;, 114) = 114<br>24036 wait4(-1, [{WIFEXITED(s) &amp;&amp; WEXITSTATUS(s) == 0}], WNOHANG, NULL) = 24064<br>24036 stat(&quot;/etc/localtime&quot;, {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0<br>24036 write(2, &quot;2015-06-22 12:14:43: pid 24036: LOG:  child process with pid: 24064 exits with status 0\n&quot;, 88) = 88<br>24036 stat(&quot;/etc/localtime&quot;, {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0<br>24036 write(2, &quot;2015-06-22 12:14:43: pid 24036: LOG:  child process with pid: 24064 exited with success and will not be restarted\n&quot;, 114) = 114<br>24036 wait4(-1, [{WIFEXITED(s) &amp;&amp; WEXITSTATUS(s) == 0}], WNOHANG, NULL) = 24050<br>24036 stat(&quot;/etc/localtime&quot;, {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0<br>24036 write(2, &quot;2015-06-22 12:14:43: pid 24036: LOG:  child process with pid: 24050 exits with status 0\n&quot;, 88) = 88<br>24036 stat(&quot;/etc/localtime&quot;, {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0<br>24036 write(2, &quot;2015-06-22 12:14:43: pid 24036: LOG:  child process with pid: 24050 exited with success and will not be restarted\n&quot;, 114) = 114<br>24036 wait4(-1, [{WIFEXITED(s) &amp;&amp; WEXITSTATUS(s) == 0}], WNOHANG, NULL) = 24046<br>24036 stat(&quot;/etc/localtime&quot;, {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0<br>24036 write(2, &quot;2015-06-22 12:14:43: pid 24036: LOG:  child process with pid: 24046 exits with status 0\n&quot;, 88) = 88<br>24036 stat(&quot;/etc/localtime&quot;, {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0<br>24036 write(2, &quot;2015-06-22 12:14:43: pid 24036: LOG:  child process with pid: 24046 exited with success and will not be restarted\n&quot;, 114) = 114<br>24036 wait4(-1, [{WIFEXITED(s) &amp;&amp; WEXITSTATUS(s) == 0}], WNOHANG, NULL) = 24051<br>24036 stat(&quot;/etc/localtime&quot;, {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0<br>24036 write(2, &quot;2015-06-22 12:14:43: pid 24036: LOG:  child process with pid: 24051 exits with status 0\n&quot;, 88) = 88<br>24036 stat(&quot;/etc/localtime&quot;, {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0<br>24036 write(2, &quot;2015-06-22 12:14:43: pid 24036: LOG:  child process with pid: 24051 exited with success and will not be restarted\n&quot;, 114) = 114<br>24036 wait4(-1, [{WIFEXITED(s) &amp;&amp; WEXITSTATUS(s) == 0}], WNOHANG, NULL) = 24047<br>24036 stat(&quot;/etc/localtime&quot;, {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0<br>24036 write(2, &quot;2015-06-22 12:14:43: pid 24036: LOG:  child process with pid: 24047 exits with status 0\n&quot;, 88) = 88<br>24036 stat(&quot;/etc/localtime&quot;, {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0<br>24036 write(2, &quot;2015-06-22 12:14:43: pid 24036: LOG:  child process with pid: 24047 exited with success and will not be restarted\n&quot;, 114) = 114<br>24036 wait4(-1, [{WIFEXITED(s) &amp;&amp; WEXITSTATUS(s) == 0}], WNOHANG, NULL) = 24043<br>24036 stat(&quot;/etc/localtime&quot;, {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0<br>24036 write(2, &quot;2015-06-22 12:14:43: pid 24036: LOG:  child process with pid: 24043 exits with status 0\n&quot;, 88) = 88<br>24036 stat(&quot;/etc/localtime&quot;, {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0<br>24036 write(2, &quot;2015-06-22 12:14:43: pid 24036: LOG:  child process with pid: 24043 exited with success and will not be restarted\n&quot;, 114) = 114<br>24036 wait4(-1, [{WIFEXITED(s) &amp;&amp; WEXITSTATUS(s) == 0}], WNOHANG, NULL) = 24048<br>24036 stat(&quot;/etc/localtime&quot;, {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0<br>24036 write(2, &quot;2015-06-22 12:14:43: pid 24036: LOG:  child process with pid: 24048 exits with status 0\n&quot;, 88) = 88<br>24036 stat(&quot;/etc/localtime&quot;, {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0<br>24036 write(2, &quot;2015-06-22 12:14:43: pid 24036: LOG:  child process with pid: 24048 exited with success and will not be restarted\n&quot;, 114) = 114<br>24036 wait4(-1, [{WIFEXITED(s) &amp;&amp; WEXITSTATUS(s) == 0}], WNOHANG, NULL) = 24044<br>24036 stat(&quot;/etc/localtime&quot;, {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0<br>24036 write(2, &quot;2015-06-22 12:14:43: pid 24036: LOG:  child process with pid: 24044 exits with status 0\n&quot;, 88) = 88<br>24036 stat(&quot;/etc/localtime&quot;, {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0<br>24036 write(2, &quot;2015-06-22 12:14:43: pid 24036: LOG:  child process with pid: 24044 exited with success and will not be restarted\n&quot;, 114) = 114<br>24036 wait4(-1, [{WIFEXITED(s) &amp;&amp; WEXITSTATUS(s) == 0}], WNOHANG, NULL) = 24045<br>24036 stat(&quot;/etc/localtime&quot;, {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0<br>24036 write(2, &quot;2015-06-22 12:14:43: pid 24036: LOG:  child process with pid: 24045 exits with status 0\n&quot;, 88) = 88<br>24036 stat(&quot;/etc/localtime&quot;, {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0<br>24036 write(2, &quot;2015-06-22 12:14:43: pid 24036: LOG:  child process with pid: 24045 exited with success and will not be restarted\n&quot;, 114) = 114<br>24036 wait4(-1, [{WIFEXITED(s) &amp;&amp; WEXITSTATUS(s) == 0}], WNOHANG, NULL) = 24040<br>24036 stat(&quot;/etc/localtime&quot;, {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0<br>24036 write(2, &quot;2015-06-22 12:14:43: pid 24036: LOG:  child process with pid: 24040 exits with status 0\n&quot;, 88) = 88<br>24036 stat(&quot;/etc/localtime&quot;, {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0<br>24036 write(2, &quot;2015-06-22 12:14:43: pid 24036: LOG:  child process with pid: 24040 exited with success and will not be restarted\n&quot;, 114) = 114<br>24036 wait4(-1, [{WIFEXITED(s) &amp;&amp; WEXITSTATUS(s) == 0}], WNOHANG, NULL) = 24042<br>24036 stat(&quot;/etc/localtime&quot;, {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0<br>24036 write(2, &quot;2015-06-22 12:14:43: pid 24036: LOG:  child process with pid: 24042 exits with status 0\n&quot;, 88) = 88<br>24036 stat(&quot;/etc/localtime&quot;, {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0<br>24036 write(2, &quot;2015-06-22 12:14:43: pid 24036: LOG:  child process with pid: 24042 exited with success and will not be restarted\n&quot;, 114) = 114<br>24036 wait4(-1, [{WIFEXITED(s) &amp;&amp; WEXITSTATUS(s) == 0}], WNOHANG, NULL) = 24041<br>24036 stat(&quot;/etc/localtime&quot;, {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0<br>24036 write(2, &quot;2015-06-22 12:14:43: pid 24036: LOG:  child process with pid: 24041 exits with status 0\n&quot;, 88) = 88<br>24036 stat(&quot;/etc/localtime&quot;, {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0<br>24036 write(2, &quot;2015-06-22 12:14:43: pid 24036: LOG:  child process with pid: 24041 exited with success and will not be restarted\n&quot;, 114) = 114<br>24036 wait4(-1, 0x7fff4da2886c, WNOHANG, NULL) = 0<br>24036 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0<br>24036 --- SIGTERM (Terminated) @ 0 (0) ---<br>24036 --- SIGCHLD (Child exited) @ 0 (0) ---<br>24036 rt_sigprocmask(SIG_SETMASK, ~[ILL TRAP ABRT BUS FPE SEGV CONT SYS RTMIN RT_1], NULL, 8) = 0<br>24036 write(8, &quot;\0&quot;, 1)                 = 1<br>24036 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0<br>24036 --- SIGCHLD (Child exited) @ 0 (0) ---<br>24036 rt_sigprocmask(SIG_SETMASK, ~[ILL TRAP ABRT BUS FPE SEGV CONT SYS RTMIN RT_1], NULL, 8) = 0<br>24036 write(8, &quot;\0&quot;, 1)                 = 1<br>24036 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0<br>24036 rt_sigreturn(0x2)                 = 0<br>24036 rt_sigreturn(0x2)                 = 0<br>24036 rt_sigprocmask(SIG_SETMASK, ~[QUIT ILL TRAP ABRT BUS FPE SEGV ALRM TERM CONT SYS RTMIN RT_1], NULL, 8) = 0<br>24036 stat(&quot;/etc/localtime&quot;, {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0<br>24036 write(2, &quot;2015-06-22 12:14:43: pid 24036: LOG:  received smart shutdown request\n&quot;, 70) = 70<br>24036 stat(&quot;/etc/localtime&quot;, {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0<br>24036 write(2, &quot;2015-06-22 12:14:43: pid 24036: LOG:  shutdown request. closing listen socket\n&quot;, 78) = 78<br>24036 close(4)                          = 0<br>24036 close(5)                          = 0<br>24036 close(6)                          = 0<br>24036 kill(24038, SIGTERM)              = 0<br>24036 kill(24039, SIGTERM)              = 0<br>24036 kill(24059, SIGTERM)              = 0<br>24036 kill(24062, SIGTERM)              = 0<br>24036 kill(24066, SIGTERM)              = 0<br>24036 kill(24067, SIGTERM)              = 0<br>24036 kill(24069, SIGTERM)              = 0<br>24036 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0<br>24036 --- SIGCHLD (Child exited) @ 0 (0) ---<br>24036 rt_sigprocmask(SIG_SETMASK, ~[ILL TRAP ABRT BUS FPE SEGV CONT SYS RTMIN RT_1], NULL, 8) = 0<br>24036 write(8, &quot;\0&quot;, 1)                 = 1<br>24036 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0<br>24036 rt_sigreturn(0x2)                 = 0<br>24036 wait4(-1, NULL, 0, NULL)          = 24038<br>24036 wait4(-1, NULL, 0, NULL)          = 24039<br>24036 wait4(-1,  &lt;unfinished ...&gt;<br>24036 +++ killed by SIGKILL +++<br><br><br><br></div><div><b>pgpool-II log (I manually remove the socket files to get it starting):</b><br></div><div><br>2015-06-22 12:12:45: pid 23633: LOG:  received smart shutdown request<br>2015-06-22 12:12:45: pid 23633: LOG:  shutdown request. closing listen socket<br>2015-06-22 12:12:45: pid 23661: LOG:  child process received shutdown request signal 15<br>2015-06-22 12:12:45: pid 23662: LOG:  child process received shutdown request signal 15<br>2015-06-22 12:12:45: pid 23664: LOG:  child process received shutdown request signal 15<br>2015-06-22 12:12:45: pid 23665: LOG:  child process received shutdown request signal 15<br>2015-06-22 12:12:45: pid 23666: LOG:  child process received shutdown request signal 15<br>stdin: is not a tty<br>stdin: is not a tty<br>2015-06-22 12:12:49: pid 23988: FATAL:  failed to bind a socket: &quot;/var/run/pgpool/.s.PGSQL.9999&quot;<br>2015-06-22 12:12:49: pid 23988: DETAIL:  bind socket failed with error: &quot;Address already in use&quot;<br>stdin: is not a tty<br>stdin: is not a tty<br>2015-06-22 12:13:08: pid 24036: LOG:  Setting up socket for <a href="http://0.0.0.0:9999">0.0.0.0:9999</a><br>2015-06-22 12:13:08: pid 24036: LOG:  Setting up socket for :::9999<br>2015-06-22 12:13:08: pid 24036: LOG:  pgpool-II successfully started. version 3.4.2 (tataraboshi)<br><br></div><div>I&#39;m using the initscript supplied with the RPM which defines stop as<br><br>stop(){<br>        echo -n $&quot;Stopping ${NAME} service: &quot;<br>        if [ $UID -ne 0 ]; then<br>                RETVAL=1<br>                failure<br>        else<br>                killproc /usr/bin/pgpool<br>#               $PGPOOLDAEMON stop &amp; &gt;&gt; &quot;$PGPOOLLOG&quot; 2&gt;&amp;1 &lt; /dev/null<br>                RETVAL=$?<br>                [ $RETVAL -eq 0 ] &amp;&amp; rm -f /var/lock/subsys/${NAME}<br>        fi;<br>        echo<br>        return $RETVAL<br>}<br><br><br></div><div>(I notice the native pool stop command has been commented out in favor of a rhel killproc -- it seems to work some of the time however).<br></div><br>Is there a method to disable the local socket (similar to can be done with the network socket) -- I&#39;m only communicating via tcp.<br><br></div><div><br></div><div><br> </div><div>Thanks and regards,<br></div>James Elsdon<br></div>