You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's useful to be able to live-collaborate with others on a cloud.
mkcloud currently needs to run in a dedicated directory (see mkcloud writes temporary files in cwd #224), so this helps keep separation between multiple clouds on the same machine.
We could either write a wrapper around mkcloud which supports creation of a new screen session for the cloud and reuse of any existing session, or we could add native support for this directly into mkcloud itself. For example:
Check if already running inside screen; if so, carry on as normal.
Not running inside screen, so check if there is an existing screen session for this cloud. If so, join the session and re-run via exec $0 "$@" or similar.
If there is no screen session, create one and re-run the script as in step 2.
A similar approach could be used for tmux.
Is this worth doing? @vuntz This arose from looking at /root/manual.vuntz/start-screen.sh etc. on mkcloud1.
We could either write a wrapper around ... or we could add native support ...
I am not sure if its worth the effort. Its a nice idea indeed.
But how many of use need this and how often?
I need it once after an mkcloud host booted. Not sure about other peoples use cases.
Adding such a feature should be doable, but I guess we have other more pressing issues to address.
One remaining question is how to handle non-interactive invocations, e.g. if you were batch-starting 10 new clouds in parallel.
Answering that question is the whole point of writing use cases, so you could look through the use cases I helpfully suggested and decide for yourself ;-) Probably the most important one is protecting against network outages, which explains why you don't personally feel the urgency, because you're not a remote worker.
Probably the most important one is protecting against network outages,
Well, you might wonder that the first thing I do when running an mkcloud run is to start screen.
I also like to be able to dis- and reonnect. Even we have network outages sometimes.
My point was not to question the use of screen/tmux at all. I just wonder if its worth doing it automatically. The fix is just a screen<Enter> away. For me that currently works and does not slow me down.
So if $somebody provides such a feature I will accept it for sure. I would just not invest time into it right now (just MHO).
It seems like a pretty common use case to want to run
mkcloud
inside screen. I guess there are a few reasons, e.g.mkcloud
runs generally take a long time, so this protects against network outagesmkcloud
runs generate a lot of output, and screen/tmux can capture output in the scroll-back buffer or even in a log file (although mkcloud needs to automatically log itself to a file #1191 could take care of that separately)mkcloud
currently needs to run in a dedicated directory (see mkcloud writes temporary files in cwd #224), so this helps keep separation between multiple clouds on the same machine.We could either write a wrapper around
mkcloud
which supports creation of a new screen session for the cloud and reuse of any existing session, or we could add native support for this directly intomkcloud
itself. For example:exec $0 "$@"
or similar.A similar approach could be used for
tmux
.Is this worth doing? @vuntz This arose from looking at
/root/manual.vuntz/start-screen.sh
etc. onmkcloud1
./cc @jdsn @bmwiedemann
One remaining question is how to handle non-interactive invocations, e.g. if you were batch-starting 10 new clouds in parallel.
The text was updated successfully, but these errors were encountered: