intetsim review (Re: ITP: inetsim)

Lukas Schwaighofer lukas at schwaighofer.name
Wed Nov 15 08:02:47 UTC 2017


On Wed, 15 Nov 2017 03:57:20 +0000
GengYu Rao <zouyoo at outlook.com> wrote:

> >> The easier way is to add the helper script and cd there,
> >> like the init script. This would avoid many problems.  
> > Which problems specifically?
> >  
> when launching by init script the cwd will be changed
> to /usr/share/inetsim but if launched from console the cwd wouldn't
> be that, and it will try to use
> ./conf, ./data, ./log  ./report directories relative to the cwd.

I would argue that this makes sense for inetsim:  If you want to run it
from the command line to test something, you would do that in a new
folder and make a configuration specifically for that.  The
data/log/report will then not "mix" with other experiments.

> So in order to let it use the same files when launched from different
> ways the easier way is to add the helper script and cd
> to /usr/share/inetsim Or we need to patch it, to let it
> use ./conf ./data ./log ./report from one place

If we want them to always log to those directories and use the
respective configuration files, we can patch lib/INetSim/Config.pm
instead.

Regards
Lukas



More information about the Pkg-security-team mailing list