From: ke.han <ke...@re...> - 2006-02-24 17:32:55
|
great find...I would like to be able to relocate the control files as well. I think a yaws command line switch would be preferred over an environment variable since the mnesia directory already has one. ke han Fredrik Thulin wrote: > Hi > > On my new servers (operated by other people than me), there is a > cron-job or similar that regularly cleans out /tmp. The effect on Yaws > is that I can't talk to running servers, and other intermittent bad > things. > > I think /var/tmp is left alone, so I need a way to specify where Yaws > should put it's run-time files. > > The simplest (and also, IMO quite elegant) solution is to look for a > TMPDIR environment variable in yaws:tmp_dir/0, similar to what is done > for win32 os:type(). See the attached patch 'use-TMPDIR.patch1' - I > hope you like the idea. > > Secondly, I noted a couple of places in yaws_ctl.erl where /tmp was > hard-coded. See the attached patch consistent-ctl_path.patch1. > > And also, there is an > > io:format("AAAA A = ~p~n", [A]), > > in src/yaws_config.erl which I believe was not meant to be committed. > > Trevlig helg / Have a nice weekend > > /Fredrik |