Download raw body.
relayd disable/enable all hosts with same name
On Thu, May 23, 2024 at 03:40:11PM +0300, Kapetanakis Giannis wrote:
> Hi,
>
> When you have multiple redirect services on same servers but different ports,
> the only way to conveniently put one host in maintenance is to put it with parent.
>
> table <host_table> { host1, host2 }
> table <host_table> { host3 parent 1, host 4 parent 2 }
>
> However this disables TCP checks, on the new port and in advance makes the setup more complicated.
>
> It is easier to use the same <host_table> on all redirects.
>
> But in this case when you issue relayctl host en/dis host1
> it only disables/enables the first host it finds.
>
> This patch issues the disable/enable on all subsequent hosts when the command is given by host name and not by host id.
>
> regards,
>
> G
>
Committed [1] thanks for your work.
regards
sashan
[1] https://marc.info/?l=openbsd-cvs&m=171861342812464&w=2
relayd disable/enable all hosts with same name