diff --git a/README b/README index b2feda5..e0102e1 100644 --- a/README +++ b/README @@ -25,6 +25,10 @@ vl-checker [OPTION] OPTIONS: -d Daemonise the process (default). -D Do not daemonise the process. + -a Check all servers on startup (default). + -A Do not check all servers on startup. + -o Run check only once. + -O Run check repeatedly in a loop (default). -? Show this help info. CONFIG: diff --git a/src/main.c b/src/main.c index ccdd9b0..293d300 100644 --- a/src/main.c +++ b/src/main.c @@ -100,6 +100,10 @@ static void usage() "OPTIONS:\n" " -d Daemonise the process (default).\n" " -D Do not daemonise the process.\n" + " -a Check all servers on startup (default).\n" + " -A Do not check all servers on startup.\n" + " -o Run check only once.\n" + " -O Run check repeatedly in a loop (default).\n" " -? Show this help info.\n", TARGET, VERSION, @@ -115,6 +119,8 @@ int main(int argc, char** argv) time_t b; time_t e; int daemonise = 1; + int all = 1; + int once = 0; for (i=1; i