summaryrefslogtreecommitdiffstats
path: root/usr.sbin/hoststatectl/parser.c
diff options
context:
space:
mode:
authorpyr <pyr@openbsd.org>2007-10-19 12:08:54 +0000
committerpyr <pyr@openbsd.org>2007-10-19 12:08:54 +0000
commitcd65ce7b8b3f92c349c25ef36e6b5ae0a22983dc (patch)
tree22da8bb3d8ee14b54f4c3345fd53d08caec550a5 /usr.sbin/hoststatectl/parser.c
parentkeep log_warn messages to be informed when a failure occurs during a reload. (diff)
downloadwireguard-openbsd-cd65ce7b8b3f92c349c25ef36e6b5ae0a22983dc.tar.xz
wireguard-openbsd-cd65ce7b8b3f92c349c25ef36e6b5ae0a22983dc.zip
Add the ability to schedule an immediate check through hoststatectl.
Especially useful when interval is rather long. I was supposed to commit this before 4.2.
Diffstat (limited to 'usr.sbin/hoststatectl/parser.c')
-rw-r--r--usr.sbin/hoststatectl/parser.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/hoststatectl/parser.c b/usr.sbin/hoststatectl/parser.c
index dea2cb5f443..ee5451c8982 100644
--- a/usr.sbin/hoststatectl/parser.c
+++ b/usr.sbin/hoststatectl/parser.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: parser.c,v 1.13 2007/09/28 13:29:56 pyr Exp $ */
+/* $OpenBSD: parser.c,v 1.14 2007/10/19 12:08:55 pyr Exp $ */
/*
* Copyright (c) 2006 Pierre-Yves Ritschard <pyr@openbsd.org>
@@ -66,6 +66,7 @@ static const struct token t_host_id[];
static const struct token t_main[] = {
{KEYWORD, "monitor", MONITOR, NULL},
{KEYWORD, "show", NULL, t_show},
+ {KEYWORD, "poll", POLL, NULL},
{KEYWORD, "reload", RELOAD, NULL},
{KEYWORD, "stop", SHUTDOWN, NULL},
{KEYWORD, "service", NONE, t_service},