jupyterhub / jupyterhub/systemdspawner

Support use of `JupyterHub.allow_named_servers`

Open
#73 1 comment 1 reaction 0 assignees View on GitHub
new
Dominant language
Python
Stars
100
Forks
44
PR merge metrics
No merged PRs in 30d

Description

### Proposed change

If I understand correctly it is currently not possible to create named servers with systemdspawner.

If you set

```python
c.JupyterHub.allow_named_servers = True
```

Creating a new named server will kill the original server. I *think* this is because the `unit_name_template does not expand the name:

```python
c.SystemdSpawner.unit_name_template = f'jupyter-{USERNAME}-singleuser'
```

thus the "named server" has the same name as the default server and this the default server is killed...

### Alternative options
- Not using named servers.
- Issue a warning when `c.JupyterHub.allow_named_servers = True`

### (Optional): Suggest a solution
make `c.SystemdSpawner.unit_name_template` expand the (optional) name of the server

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.