summaryrefslogtreecommitdiff
path: root/usr.sbin/hoststated/hce.c
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2007-03-07 17:40:33 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2007-03-07 17:40:33 +0000
commit577a9f29e7e7f9565e573a6e48ac3061cd90b62f (patch)
tree7e0055f153507b08335847a83f8b18947c30eb46 /usr.sbin/hoststated/hce.c
parentf38341b9ce7dd7d1de01b260afd7330c7ec160ad (diff)
- fix the hoststatectl host disable/enable commands to work with relay
layer 7 loadbalancing. - allow to run relays with tables without depending on services - show hosts and tables assigned to relays in hoststatectl show commands ok pyr@ deraadt@ with some input from mcbride@
Diffstat (limited to 'usr.sbin/hoststated/hce.c')
-rw-r--r--usr.sbin/hoststated/hce.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/hoststated/hce.c b/usr.sbin/hoststated/hce.c
index a987f662f8e..490ebb10168 100644
--- a/usr.sbin/hoststated/hce.c
+++ b/usr.sbin/hoststated/hce.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hce.c,v 1.17 2007/03/06 19:37:31 reyk Exp $ */
+/* $OpenBSD: hce.c,v 1.18 2007/03/07 17:40:32 reyk Exp $ */
/*
* Copyright (c) 2006 Pierre-Yves Ritschard <pyr@spootnik.org>
@@ -141,7 +141,7 @@ hce(struct hoststated *x_env, int pipe_parent2pfe[2], int pipe_parent2hce[2],
ibuf_main->handler, ibuf_main);
event_add(&ibuf_main->ev, NULL);
- if (!TAILQ_EMPTY(&env->services)) {
+ if (!TAILQ_EMPTY(&env->tables)) {
evtimer_set(&env->ev, hce_launch_checks, env);
bzero(&tv, sizeof(tv));
evtimer_add(&env->ev, &tv);