Re: having a problem with multilog not shutting down...
Peter Wolfenden <[email protected]> Mon, 28 Jan 2013 20:52:12 -0800
| Newsgroups | gmane.comp.djb.syslog |
|---|---|
| Message-ID | <CAAMh7U_NJUdA6jAyH1uSxZrPVLUOMgtqd+c0_WCZQTjrJFY0OQ@mail.gmail.com> |
--0015175cd10c306b8704d466281c
Content-Type: text/plain; charset=ISO-8859-1
Hi Jeremy,
The svc-stop.sh script appears to support a -k option, which is supposed
kill the service if SIGTERM doesn't stop it:
https://github.com/bruceg/supervise-scripts/blob/master/svc-stop.sh
This could help it a situation where multilog is stuck waiting for a
newline.
Cheers,
Peter
On Mon, Jan 28, 2013 at 8:24 PM, Andy Bradford <
[email protected]> wrote:
> Thus said Jeremy Hansen on Mon, 28 Jan 2013 20:10:48 -0800:
>
> > Point is, svc -d doesn't bring it down either, so it's not the script.
> > What will cause a process to not die using svc -d?
>
> Well, the process will receive SIGTERM, and the documentation (which you
> can find here: http://cr.yp.to/daemontools/multilog.html ) says this
> about SIGTERM:
>
> If multilog receives a TERM signal, it will read and process data
> until the next newline, and then exit, leaving stdin at the first
> byte of data it has not processed.
>
> Andy
>
>
--
Peter Wolfenden
650-801-7714
--0015175cd10c306b8704d466281c
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Hi Jeremy,<div><br></div><div>The svc-stop.sh script appears to support a -=
k option, which is supposed kill the service if SIGTERM doesn't stop it=
:</div><div><br></div><div>=A0 =A0 <a href=3D"https://github.com/bruceg/sup=
ervise-scripts/blob/master/svc-stop.sh">https://github.com/bruceg/supervise=
-scripts/blob/master/svc-stop.sh</a></div>
<div><br></div><div>This could help it a situation where multilog is stuck =
waiting for a newline.</div><div><br></div><div>Cheers,</div><div><br></div=
><div>=A0 =A0 Peter<br><br><div class=3D"gmail_quote">On Mon, Jan 28, 2013 =
at 8:24 PM, Andy Bradford <span dir=3D"ltr"><<a href=3D"mailto:amb-sendo=
[email protected]" target=3D"_blank">amb-send=
[email protected]</a>></span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">Thus said Jeremy Hansen on Mon, 28 Jan 2013 =
20:10:48 -0800:<br>
<div class=3D"im"><br>
> Point is, svc -d doesn't bring it down either, so it's not the=
script.<br>
> What will cause a process to not die using svc -d?<br>
<br>
</div>Well, the process will receive SIGTERM, and the documentation (which =
you<br>
can =A0find here: =A0<a href=3D"http://cr.yp.to/daemontools/multilog.html" =
target=3D"_blank">http://cr.yp.to/daemontools/multilog.html</a> =A0) says =
=A0this<br>
about SIGTERM:<br>
<br>
=A0 If multilog receives a TERM signal, =A0it will read and process data<br=
>
=A0 until the next newline, and then =A0exit, leaving stdin at the first<br=
>
=A0 byte of data it has not processed.<br>
<span class=3D"HOEnZb"><font color=3D"#888888"><br>
Andy<br>
<br>
</font></span></blockquote></div><br><br clear=3D"all"><div><br></div>-- <b=
r>Peter Wolfenden<br>650-801-7714<br>
</div>
--0015175cd10c306b8704d466281c--