HSAnet / glimpse_client

GLIMPSE is an end host-based network measurement tool.
http://www.measure-it.net
Other
6 stars 6 forks source link

glimpse-console: exit on registration #290

Closed monstermunchkin closed 9 years ago

monstermunchkin commented 9 years ago

What I want to be able to do:

docker run -v /home/glimpse/.local/share/HS-Augsburg -v /home/glimpse/.config/HS-Augsburg --name glimpse-data busybox
docker run --volumes-from glimpse-data --rm monstermunchkin/glimpse --register-anonymous
docker run --volumes-from glimpse-data -d --name glimpse monstermunchkin/glimpse

The problem is that --register-anonymous doesn't exit and I would have to stop/kill the glimpse container manually before being able to continue with step 3. I propose that we change the behaviour of --register-anonymous and let it exit after registering. Would that be in any way inconvenient?

theoriginalgri commented 9 years ago

I don't see why this would be a problem.

Otherwise we could add a --exit-after-registration parameter or something with a better name to express the same?

@MKV21 any comments?

MKV21 commented 9 years ago

I thought about adding a --oneshot parameter (or something like that) some months ago. I don't have a problem if you add this and exit the client after some seconds if the parameter is set. But come up with a better name, please!

monstermunchkin commented 9 years ago

Simply exiting by default is not an option then? It would result in the least code changes after all.

MKV21 commented 9 years ago

Hm okay, automatically exiting after --register and --register-anonymous.

MKV21 commented 9 years ago

closed by 2d47418