[Bug 1073478] Re: [SRU] Update squid3 upstart script to kill it with SIGINT and wait longer
Tiago Stürmer Daitx
1073478 at bugs.launchpad.net
Fri Oct 16 03:10:46 UTC 2015
> Yeah, but is the bug present in the sysinit script? I'm assuming not,
> but it wouldn't hurt to verify.
Michael, indeed, thanks for the heads up. I did try it when
researching the SRU, but I forgot to include evidence that it worked
just fine. I have collected that just now.
# /etc/init.d/squid3 start
[ ok ] Starting squid3 (via systemctl): squid3.service.
# /etc/init.d/squid3 stop
[ ok ] Stopping squid3 (via systemctl): squid3.service.
# strace -r -e trace=signal,file -p $(cat /var/run/squid3.pid)
Process 2925 attached
0.000000 --- SIGTERM {si_signo=SIGTERM, si_code=SI_USER,
si_pid=3028, si_uid=0} ---
0.000068 kill(2923, SIGUSR1) = 0
0.000046 rt_sigreturn() = -1 EINTR (Interrupted system call)
0.000081 stat("/etc/localtime", {st_mode=S_IFREG|0644,
st_size=127, ...}) = 0
9.395299 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED,
si_pid=2943, si_status=1, si_utime=0, si_stime=1} ---
0.000778 rt_sigreturn() = -1 EINTR (Interrupted system call)
21.948196 stat("/etc/localtime", {st_mode=S_IFREG|0644,
st_size=127, ...}) = 0
0.002870 kill(2931, SIGTERM) = 0
0.000606 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_KILLED,
si_pid=2931, si_status=SIGTERM, si_utime=0, si_stime=0} ---
0.000271 rt_sigreturn() = 9
0.010035 unlink("/var/run/squid3.pid") = 0
0.000397 open("/proc/sys/kernel/ngroups_max", O_RDONLY) = 10
0.000353 open("/etc/group", O_RDONLY|O_CLOEXEC) = 10
0.005137 +++ exited with 0 +++
As expected. it exits after about ~30 seconds.
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to squid3 in Ubuntu.
https://bugs.launchpad.net/bugs/1073478
Title:
[SRU] Update squid3 upstart script to kill it with SIGINT and wait
longer
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/squid3/+bug/1073478/+subscriptions
More information about the Ubuntu-server-bugs
mailing list