cli_out(cli, "Child in state %s", ch_state[child_state]);
}
}
+
+/*--------------------------------------------------------------------*/
+
+void
+mcf_server_status(struct cli *cli, char **av, void *priv)
+{
+ (void)av;
+ (void)priv;
+ cli_out(cli, "Child is state %s", ch_state[child_state]);
+}
/* XXX: what order should this list be in ? */
static struct cli_proto mgt_cli_proto[] = {
{ CLI_PING, cli_func_ping },
+ { CLI_SERVER_STATUS, mcf_server_status, NULL },
{ CLI_SERVER_START, mcf_server_startstop, NULL },
{ CLI_SERVER_STOP, mcf_server_startstop, &cli_proto },
{ CLI_STATS, mcf_stats, NULL },
/* mgt_child.c */
cli_func_t mcf_server_startstop;
+cli_func_t mcf_server_status;
/* mgt_param.c */
cli_func_t mcf_param_show;
better idea of the current situation, use the
.Xr varnishstat 1
utility.
+.It Cm status
+Check the status of the child process.
.It Cm stop
Stop the child process.
.It Cm url.purge Ar regexp
"\tClose connection", \
0, 0
+# define CLI_SERVER_STATUS \
+ "status", \
+ "status", \
+ "\tCheck status of Varnish cache process.", \
+ 0, 0
+
/*
* Status/return codes in the CLI protocol
*/