Re: Generic interrupt command?

2019-02-04 Thread Roger Pate
On Mon, Feb 4, 2019 at 10:09 PM John O'Meara wrote: > On Sat, Feb 2, 2019, 4:40 PM Steve Litt wrote: >> On Sat, 2 Feb 2019 21:08:10 + Colin Booth wrote: >>> s6-svstat -p /path/to/service | xargs kill SIGNAL >> >> Cool. That's all that's needed. > > Be careful, though. If the service is down,

Re: s6 problems logging

2019-01-27 Thread Roger Pate
On Sun, Jan 27, 2019 at 1:56 PM Sean MacLennan wrote: > So it seems that s6-log does not like buffered output. I modified > doorknob to vsnprintf into a buffer and then tried various output > methods. s6-log (or another program) has no idea about your buffered output. Output cannot be read until

Re: small proxy

2017-05-23 Thread Roger Pate
On Tue, May 23, 2017 at 8:59 AM, Kamil CholewiƄski wrote: > On Tue, 23 May 2017, Jorge Almeida wrote: >> Basically, tinyproxy does this. What it does not do is sensible >> logging. It seems to be brain damaged in this departement: it either >> logs to syslog or to a file, which it insists in open

Re: register runsvdir as subreaper

2017-02-02 Thread Roger Pate
On Thu, Feb 2, 2017 at 3:07 AM, Jonathan de Boyne Pollard wrote: > Roger Pate: >> (And how should we apply chain-loading local-reaper to runsv?) > How to wrap a program inside something else that does additional stuff then > exec()s the original program *is* a solved problem on U

Re: register runsvdir as subreaper

2017-02-01 Thread Roger Pate
On Wed, Feb 1, 2017 at 11:48 AM, Laurent Bercot wrote: > You want a clean process tree with a visually pleasing "ps afuxww" > output? Fix your services so they don't leave orphans in the first > place. ... > Reparenting orphans to anything else than the default is a backwards > way to solve a no

Re: register runsvdir as subreaper

2017-02-01 Thread Roger Pate
On Wed, Feb 1, 2017 at 3:49 AM, Jonathan de Boyne Pollard wrote: > Mitar: > >> I would like to ask if runsvdir could by default be defined as a subreaper >> on Linux. > > You are talking to people well versed in the idea of chain-loading programs > for affecting process state. The answer here is

Re: s6, listen(8), etc.

2016-09-01 Thread Roger Pate
On Thu, Sep 1, 2016 at 8:34 AM, Laurent Bercot wrote: > OK, now let's have a look at LISTEN_FDS. I also find these particular implementation details a poor choice. I was going to recommend a different environment convention, but then I saw the pre-existing convention was copied exactly. If I w

Re: HAProxy Hot Reconfiguration with s6

2016-05-19 Thread Roger Pate
On Wed, May 18, 2016 at 11:32 PM, Colin Booth wrote: > reload.sh: > #!/bin/sh > /usr/sbin/haproxy \ > -f /etc/haproxy/haproxy.cfg \ > -f /opt/haproxy-config/combined.cfg \ > -p /tmp/haproxy.pid \ > -sf $(sv s /opt/zsv/jboss/haproxy | awk '{print > substr($4,1,length($4)-1)}') > >