Go to the source code of this file.
Functions | |
static void | usage (void) |
static void | init_config (void) |
static void | parse_commandline (int, char **) |
Parses the command line and set the config accordingly. | |
static int | connect_to_server (char *) |
static size_t | send_request (int, char *) |
static void | wdctl_status (void) |
static void | wdctl_stop (void) |
static void | wdctl_reset (void) |
static void | wdctl_restart (void) |
int | main (int argc, char **argv) |
Variables | |
s_config | config |
Definition in file wdctl.c.
static void parse_commandline | ( | int | argc, | |
char ** | argv | |||
) | [static] |
Parses the command line and set the config accordingly.
Uses getopt() to parse the command line and set configuration values also populates restartargv
Definition at line 77 of file commandline.c.
References config_get_config(), s_config::configfile, s_config::daemon, s_config::debuglevel, s_config::internal_sock, s_config::log_syslog, safe_malloc(), and s_config::wdctl_sock.