r48 - trunk/varnish-cache/bin/varnishd
phk at projects.linpro.no
phk at projects.linpro.no
Tue Mar 14 10:31:15 CET 2006
Author: phk
Date: 2006-03-14 10:31:15 +0100 (Tue, 14 Mar 2006)
New Revision: 48
Modified:
trunk/varnish-cache/bin/varnishd/varnishd.c
Log:
Add some trivial bits while I think about the hard ones
Modified: trunk/varnish-cache/bin/varnishd/varnishd.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/varnishd.c 2006-03-14 09:15:36 UTC (rev 47)
+++ trunk/varnish-cache/bin/varnishd/varnishd.c 2006-03-14 09:31:15 UTC (rev 48)
@@ -10,7 +10,19 @@
static void
usage(void)
{
- fprintf(stderr, "usage: varnishd\n");
+ fprintf(stderr, "usage: varnishd [options]\n");
+ fprintf(stderr, " %-20s # %s\n", "-d", "debug");
+ fprintf(stderr, " %-20s # %s\n", "-p number", "TCP listen port");
+#if 0
+ -c clusterid at cluster_controller
+ -f config_file
+ -m memory_limit
+ -s kind[,storage-options]
+ -l logfile,logsize
+ -b backend ip...
+ -u uid
+ -a CLI_port
+#endif
exit(1);
}
@@ -18,9 +30,17 @@
main(int argc, char *argv[])
{
int o;
+ unsigned portnumber = 8080;
+ unsigned dflag = 1; /* XXX: debug=on for now */
- while ((o = getopt(argc, argv, "")) != -1)
+ while ((o = getopt(argc, argv, "dp:")) != -1)
switch (o) {
+ case 'd':
+ dflag++;
+ break;
+ case 'p':
+ portnumber = strtoul(optarg, NULL, 0);
+ break;
default:
usage();
}
More information about the varnish-commit
mailing list