jupyterhub / systemdspawner

Spawn JupyterHub single-user notebook servers with systemd
BSD 3-Clause "New" or "Revised" License
92 stars 45 forks source link

Check state of service before startup and reset if failed #45

Closed RohitK89 closed 5 years ago

RohitK89 commented 5 years ago

If a user's service enters a failed state, the spawner can never recover until the state is reset manually on the host. This change will have the spawner check the state before it tries to spin up a new instance and if the state is failed, will attempt to reset it.

FIXES #44

yuvipanda commented 5 years ago

This is awesome. Thank you very much for the PR, @RohitK89! <3