version 1.5, 2004/08/06 20:09:22 |
version 1.6, 2004/09/24 12:19:21 |
|
|
usage(void) |
usage(void) |
{ |
{ |
fprintf(stderr, |
fprintf(stderr, |
"Usage: %s [-dfpv] [-c config] [-r root] [-s path]\n" |
"Usage: %s [-dfhpv] [-c config] [-r root] [-s path]\n" |
"\t-d\t\tStart the server in debugging mode (very verbose)\n" |
"\t-d\t\tStart the server in debugging mode (very verbose)\n" |
"\t-f\t\tStay in foreground instead of becoming a daemon\n" |
"\t-f\t\tStay in foreground instead of becoming a daemon\n" |
"\t-p\t\tPerform permission and ownership check on the repository\n" |
"\t-h\t\tPrint the usage and exit\n" |
"\t-r root\tUse <root> as the root directory of the repository\n" |
"\t-p\t\tPerform repository sanity check on startup\n" |
"\t-s path\tUse <path> as the path for the CVS server socket\n" |
"\t-r root\t\tUse <root> as the root directory of the repository\n" |
|
"\t-s path\t\tUse <path> as the path for the CVS server socket\n" |
"\t-v\t\tBe verbose\n", |
"\t-v\t\tBe verbose\n", |
__progname); |
__progname); |
} |
} |
|
|
if (cvs_log_init(LD_STD|LD_SYSLOG, LF_PID) < 0) |
if (cvs_log_init(LD_STD|LD_SYSLOG, LF_PID) < 0) |
err(1, "failed to initialize logging mechanism"); |
err(1, "failed to initialize logging mechanism"); |
|
|
while ((ret = getopt(argc, argv, "a:c:dfpr:s:v")) != -1) { |
while ((ret = getopt(argc, argv, "a:c:dfhpr:s:v")) != -1) { |
switch (ret) { |
switch (ret) { |
case 'c': |
case 'c': |
cvsd_conffile = optarg; |
cvsd_conffile = optarg; |
|
|
break; |
break; |
case 'f': |
case 'f': |
foreground = 1; |
foreground = 1; |
|
break; |
|
case 'h': |
|
usage(); |
|
exit(0); |
|
/* NOTREACHED */ |
break; |
break; |
case 'p': |
case 'p': |
checkrepo = 1; |
checkrepo = 1; |