UCSF-CBI / rstudio-server-controller

RStudio Server Controller (RSC) - A Tool for Launching a Personal Instance of the RStudio Server
https://github.com/UCSF-CBI/rstudio-server-controller
ISC License
4 stars 2 forks source link

rsc wait: wait for RStudio Server instance to become available #36

Closed HenrikBengtsson closed 2 years ago

HenrikBengtsson commented 2 years ago

When doing:

$ rsc start --port=random &

we don't know really know when server is available. It would be handy to have:

$ rsc wait

which will wait for the rserver to be available. This can be done by polling for config files rserver.pid, rserver.hostname, and rserver.port.

The default could be to return hostname and port:

$ rsc wait
c4-n1
30491