diff options
author | Martin Mares <mj@ucw.cz> | 2000-01-16 17:40:26 +0000 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 2000-01-16 17:40:26 +0000 |
commit | bf8558bc9cab35f31bccd6a55e51f121370765c4 (patch) | |
tree | bf5396b1e4f7a9c2eff282a5f675e0cb59d1704e /sysdep/unix/config.Y | |
parent | ebc793a5f552bb676014f771d81c074b7dd4345d (diff) |
Converted shutdown to a kind of reconfiguration, it's no more handled
as a exception in protocol state machines. Introduced a `shutdown'
CLI command. Killed few reconfiguration bugs.
Diffstat (limited to 'sysdep/unix/config.Y')
-rw-r--r-- | sysdep/unix/config.Y | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sysdep/unix/config.Y b/sysdep/unix/config.Y index 299cc41d..cd553f8e 100644 --- a/sysdep/unix/config.Y +++ b/sysdep/unix/config.Y @@ -67,6 +67,9 @@ log_cat: CF_CLI(CONFIGURE, cfg_name, [<file>], [[Reload configuration]]) { cmd_reconfig($2); } ; +CF_CLI(SHUTDOWN,,, [[Shut the daemon down]]) +{ cli_msg(7, "Shutdown ordered"); order_shutdown(); } ; + cfg_name: /* empty */ { $$ = NULL; } | TEXT |