Skip to content

Commit

Permalink
Merge pull request #118 from consideRatio/pr/update-docs
Browse files Browse the repository at this point in the history
docs: add some explanatory notes in files, and small details
  • Loading branch information
yuvipanda authored May 25, 2023
2 parents 61b425a + 4d40c9d commit 19b69dc
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ You can enable it for your jupyterhub with the following lines in your
`jupyterhub_config.py` file

```python
c.JupyterHub.spawner_class = 'systemdspawner.SystemdSpawner'
c.JupyterHub.spawner_class = "systemd"
```

Note that to confirm systemdspawner has been installed in the correct jupyterhub
Expand Down
8 changes: 6 additions & 2 deletions check-kernel.bash
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
#!/bin/bash

#
# SystemdSpawner's config cpu_limit and mem_limit needs certain linux kernel
# options enabled, otherwise they will fail silently. Running this script checks
# if they are.
#
# Partially stolen from https://github.com/docker/docker/blob/master/contrib/check-config.sh

#
possibleConfigs=(
'/proc/config.gz'
"/boot/config-$(uname -r)"
Expand Down
2 changes: 2 additions & 0 deletions examples/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
This file should describe how to use the jupyterhub.service file together with a
basic jupyterhub_config.py yet to be provided.
7 changes: 7 additions & 0 deletions jupyterhub.service → examples/jupyterhub.service
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# This is a systemd unit file describing a how to start a jupyterhub, provided
# as an example.
#
# systemd ref: https://www.freedesktop.org/wiki/Software/systemd/
# unit file ref: https://www.freedesktop.org/software/systemd/man/systemd.unit.html
# syntax ref: https://www.freedesktop.org/software/systemd/man/systemd.syntax.html
#
[Service]
ExecStart=/usr/local/bin/jupyterhub --no-ssl --config /etc/local/jupyterhub/jupyterhub_config.py
ReadOnlyDirectories=/
Expand Down

0 comments on commit 19b69dc

Please sign in to comment.