Skip to content
Snippets Groups Projects
Commit 6ba34a5a authored by Ondřej Surý's avatar Ondřej Surý
Browse files

Remove knotc restart command as it cannot start the server anyway

parent e7a16987
No related branches found
No related tags found
No related merge requests found
......@@ -42,9 +42,6 @@ Print help and usage.
stop
Stop knot server daemon (no\-op if not running).
.TP
restart
Stops and then starts knot server daemon.
.TP
reload
Reload knot configuration and zones.
.TP
......
......@@ -79,7 +79,6 @@ typedef struct knot_cmd {
/* Forward decls. */
static int cmd_stop(int argc, char *argv[], unsigned flags);
static int cmd_restart(int argc, char *argv[], unsigned flags);
static int cmd_reload(int argc, char *argv[], unsigned flags);
static int cmd_refresh(int argc, char *argv[], unsigned flags);
static int cmd_flush(int argc, char *argv[], unsigned flags);
......@@ -92,7 +91,6 @@ static int cmd_memstats(int argc, char *argv[], unsigned flags);
/*! \brief Table of remote commands. */
knot_cmd_t knot_cmd_tbl[] = {
{&cmd_stop, 0, "stop", "", "\t\tStop server."},
{&cmd_restart, 0, "restart", "", "\tRestart server."},
{&cmd_reload, 0, "reload", "", "\tReload configuration and changed zones."},
{&cmd_refresh, 0, "refresh", "[zone]", "\tRefresh slave zone (all if not specified)."},
{&cmd_flush, 0, "flush", "", "\t\tFlush journal and update zone files."},
......@@ -593,15 +591,6 @@ static int cmd_stop(int argc, char *argv[], unsigned flags)
return cmd_remote("stop", KNOT_RRTYPE_TXT, 0, NULL);
}
static int cmd_restart(int argc, char *argv[], unsigned flags)
{
UNUSED(argc);
UNUSED(argv);
UNUSED(flags);
return cmd_remote("restart", KNOT_RRTYPE_TXT, 0, NULL);
}
static int cmd_reload(int argc, char *argv[], unsigned flags)
{
UNUSED(argc);
......
......@@ -59,7 +59,6 @@ typedef struct remote_cmd_t {
/* Forward decls. */
static int remote_c_stop(server_t *s, remote_cmdargs_t* a);
static int remote_c_restart(server_t *s, remote_cmdargs_t* a);
static int remote_c_reload(server_t *s, remote_cmdargs_t* a);
static int remote_c_refresh(server_t *s, remote_cmdargs_t* a);
static int remote_c_status(server_t *s, remote_cmdargs_t* a);
......@@ -69,7 +68,6 @@ static int remote_c_flush(server_t *s, remote_cmdargs_t* a);
/*! \brief Table of remote commands. */
struct remote_cmd_t remote_cmd_tbl[] = {
{ "stop", &remote_c_stop },
{ "restart", &remote_c_restart },
{ "reload", &remote_c_reload },
{ "refresh", &remote_c_refresh },
{ "status", &remote_c_status },
......@@ -176,18 +174,6 @@ static int remote_c_stop(server_t *s, remote_cmdargs_t* a)
return KNOT_CTL_STOP;
}
/*!
* \brief Remote command 'restart' handler.
*
* QNAME: restart
* DATA: NULL
*/
static int remote_c_restart(server_t *s, remote_cmdargs_t* a)
{
UNUSED(a);
return KNOT_CTL_RESTART;
}
/*!
* \brief Remote command 'reload' handler.
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment