Go to the source code of this file.
Functions | |
static void | usage (void) |
void | parse_commandline (int argc, char **argv) |
Parses the command line and set the config accordingly. | |
Variables | |
char ** | restartargv = NULL |
pid_t | restart_orig_pid = 0 |
Definition in file commandline.c.
void parse_commandline | ( | int | argc, | |
char ** | argv | |||
) |
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.