<html><body>
        <div dir="ltr">Hi Armin!</div><div dir="ltr"><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div class="moz-cite-prefix">On 2/16/21 5:07 PM, Jason Cooper wrote:</div><blockquote type="cite" cite="mid:CA+x0r=uk=gFmTaQqfun1oSiWCO56W8LedjmHqBxnJa_xtPOGxA@mail.gmail.com" style="">
      <div>I’ve been using Artix / runit for a few months now with great
        success.  Now I’m moving over some of my servers to Artix that
        run `cloudflared`.  Sadly, this tool doesn’t have an option to
        disable backgrounding (daemonizing).</div>
      <div><br>
      </div>
      <div>What’s the idiomatic way to handle such processes with
        runit?  I’d like to do more than `/etc/rc.local`, and obviously
        less than full supervision runit.  How does everyone handle this
        situation?</div></blockquote></blockquote>> <br><div dir="ltr" class="gmail_attr" style="">> On Feb 16, 2021 at 11:17:54 AM, Armin <<a href="mailto:armin@systemausfall.org">armin@systemausfall.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><p>You could see if it at least can write a PID file, or create a runit service that "loses control" over the cloudflared child process. </p></blockquote><div class="gmail_quote">Yeah, that’s what I’m leaning towards.  A small tool that launches the misbehaving process, and monitors `/proc/$pid` … I was just really hoping not to have to write it :-)</div><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><p>In either way, that daemon should provide an option to not background. As for cloudflared, I was not even able to start it backgrounded (it just kept running in the forground in my case), but I agree there should be an option for this - you should probably file a bug.</p></blockquote><div class="gmail_quote"><br></div><div class="gmail_quote">Yes, I just did:</div><div class="gmail_quote"><br></div><div class="gmail_quote"><a href="https://github.com/cloudflare/cloudflared/issues/315">https://github.com/cloudflare/cloudflared/issues/315</a><br></div><div class="gmail_quote"><br></div><div class="gmail_quote"><br></div><div class="gmail_quote">Thanks!</div><div class="gmail_quote"><br></div><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><blockquote type="cite" cite="mid:CA+x0r=uk=gFmTaQqfun1oSiWCO56W8LedjmHqBxnJa_xtPOGxA@mail.gmail.com" style=""><fieldset class="mimeAttachmentHeader"></fieldset>
    </blockquote>
  


        </blockquote>
    </div>
</div>
    
</body></html>