Re: s6 vs shell wrappers for client connections

2023-01-11 Thread Laurent Bercot
if s6-svstat myserver; then client_binary else send_email_to_admin faux_client_binary fi Please don't do this. - As Steve would be able to tell you if he had read the documentation page for s6-svstat (https://skarnet.org/software/s6/s6-svstat.html), "s6-svstat myserver"'s exit code does

Re: s6 vs shell wrappers for client connections

2023-01-11 Thread Steve Litt
artur.brzozowski said on Tue, 10 Jan 2023 22:23:32 + >How, if at all, could s6 >help remove this executable ambiguity, the need for checking and >wrapping? The goal is to always run the program correctly: if >server is available, connect to it with client binary, if not - >use the standard one

Re: s6 vs shell wrappers for client connections

2023-01-11 Thread artur.brzozowski
Thank you, Laurent. Your message helps clear some misunderstandings I had due to incomplete knowledge and the state we are in when it comes to process supervision. It's not easy to know what things *could/should* look like in a world where a lot of software uses bad design that sets bad expecation

Re: s6 vs shell wrappers for client connections

2023-01-11 Thread Laurent Bercot
You have a program that can be started normally or as a service that accepts connections through a socket. For client connections, an additional binary is supplied. The simplest way to make sure that the program launches regardless of whether there's a server running or not is a wrapper script th

s6 vs shell wrappers for client connections

2023-01-10 Thread artur.brzozowski
Hi. I'm wondering if and how s6 can help with the following user-oriented problem: You have a program that can be started normally or as a service that accepts connections through a socket. For client connections, an additional binary is supplied. The simplest way to make sure that the program l