#include <sync/equilibrium2.h>
#include "equilibrium2-mgmt.h"
#include <stdlib.h>
#include <jnx/trace.h>
#include <jnx/junos_trace.h>
#include <jnx/junos_init.h>
#include <jnx/pmon.h>
Go to the source code of this file.
Functions | |
static void | main_exit (void) |
Close and exit. | |
static void | eq2_sigterm (int signo UNUSED) |
Shutdown app upon a SIGTERM. | |
static int | main_init (evContext ctx) |
Callback for the first initialization of the RE-SDK application. | |
int | main (int argc, char **argv) |
Intializes equilibrium2-mgmt's environment. | |
Variables | |
const parse_menu_t | master_menu [] |
static junos_pmon_context_t | pmon |
Contains the main entry point and registers the application as a JUNOS daemon
Definition in file equilibrium2-mgmt_main.c.
static void eq2_sigterm | ( | int signo | UNUSED | ) | [static] |
Shutdown app upon a SIGTERM.
[in] | signo | Always SIGTERM (ignored) |
Definition at line 265 of file equilibrium2-mgmt_main.c.
References main_exit().
Referenced by main_init().
int main | ( | int | argc, | |
char ** | argv | |||
) |
Intializes equilibrium2-mgmt's environment.
[in] | argc | Number of command line arguments |
[in] | argv | String array of command line arguments |
Definition at line 361 of file equilibrium2-mgmt_main.c.
References DNAME_EQUILIBRIUM2_MGMT, eq2_config_read(), main_init(), and master_menu.
static int main_init | ( | evContext | ctx | ) | [static] |
Callback for the first initialization of the RE-SDK application.
[in] | ctx | Newly created event context |
Definition at line 281 of file equilibrium2-mgmt_main.c.
References config_clear(), config_init(), EQ2_LOG, eq2_origin_id, eq2_provider_id, eq2_sigterm(), EQ2_TRACE, kcom_close(), kcom_init(), pmon, PMON_HB_INTERVAL, and server_open().
Referenced by main().
const parse_menu_t master_menu[] |
junos_pmon_context_t pmon [static] |
health monitoring handle
Definition at line 236 of file equilibrium2-mgmt_main.c.
Referenced by main_exit(), and main_init().