]> err.no Git - varnish/commit
Redo the -n argument code, it had too many problems:
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 25 Jun 2007 21:12:17 +0000 (21:12 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 25 Jun 2007 21:12:17 +0000 (21:12 +0000)
commite52707a8f6fe022285cf130b293703463646bb68
tree3be8909d749acc1fa64e20d9c1768a764c0f021a
parent1bdb0e8013f6fcd7edf9108cdac576b4ac5e746c
Redo the -n argument code, it had too many problems:

We need to process -P and -f arguments before we change directory.
(ticket 120)

(XXX: what about storage and hash arguments ??)

The daemon(3) call should not change our directory subsequently.
(ticket 121)

There is no need to enforce a hostname style format on the argument,
a directory nam makes much more sense, since that is what we need.
Defaulting to /tmp instead of our hostname makes more sense (ticket 119).

This also allows the admin to use a different directory if /tmp is
mounted noexec (ticket 111)

Put the directoryname used in the proctitle (via heritage)

XXX: for docs: vcl.load CLI commands will work relative to the -n directory.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1572 d4fa192b-c00b-0410-8231-f00ffab90ce4
varnish-cache/bin/varnishd/heritage.h
varnish-cache/bin/varnishd/mgt.h
varnish-cache/bin/varnishd/mgt_child.c
varnish-cache/bin/varnishd/mgt_param.c
varnish-cache/bin/varnishd/mgt_vcc.c
varnish-cache/bin/varnishd/varnishd.c