+void
+usage() {
+ fputs(
+ "Copyright (c) 2004-2007 Teodor Sigaev <teodor@sigaev.ru>. All rights reserved.\n"
+ "topd - daemon to collect load data from clients\n"
+ "Usage:\n"
+ "./top [-D] -h IP [-p PORT] [-n NUMCLIENTS]\n"
+ " -D - debug mode (do not daemonize, print to stderr instead of syslog)\n"
+ " -h HOST - listen IP\n"
+ " -p PORT - listen port\n"
+ " -n NUMCLIENTS - max number of clients\n",
+ stdout
+ );
+ exit(1);
+}