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

NOTES: What happens when rsession processes time out and then the rserver process #61

Open HenrikBengtsson opened 2 years ago

HenrikBengtsson commented 2 years ago
  1. When the rsession processes are timeout by rserver, i.e. terminated, their content are recovered if a new rsession is launched.
  2. When the rserver is terminated, by the RSC janitor process running in the background, data is lost. The user will be notified next time they launch the RStudio Server;

R Session Error (x) The previous R session was abnormally terminated due to an unexpected crash.

You may have lost workspace data as result of this crash. [OK]

HenrikBengtsson commented 2 years ago

The rserver process is terminated by the RSC janitor by sending a SIGTERM signal to it;

https://github.com/UCSF-CBI/rstudio-server-controller/blob/35bfc2b5807ecceaf3efe244d2bb23edd233e871/bin/rsc#L694

Q. Is there another signal that can be sent to tell rserver to shut down nicely?