-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
service_running doesn't account for chroot #90
Comments
Maybe let's step back a bit and ask what it is you'd like to do? :) The point Lennart makes in the source you link is quite valid, but - depending on what it is you wish to achieve - there's possible patches for systemdspawner. systemd itself provides ample features to make calls to |
If you so wish, but I must warn we'll be going off the point :) I want to run jupyterhub on NixOS and have access to user kernels (e.g. installed via ipykernel from venv or conda environments). Now,
The workaround I've been using is the one with the namespace (there's a convenience function in nix for that, called
IIUC, this is rather orthogonal to |
Oh, this is a very interesting problem and I've been eyeing Nix for Jupyterhub deployments, but haven't yet found the time to get my feet wet with Nix. I don't know how Is my understanding, that currently you are using Sorry if I'm misunderstanding your setup, my knowledge of Nix is rather rudimentary. |
@behrmann definitely nothing to be sorry about, and thank you for advancing the discussion:)
But to get back from nix and to the issue at hand, I'd be say to say that:
|
I think I know understand your problem better and I learned something, thank you! While I agree that something like I still think, that
|
I think the above would be the cleanest solution. If that is not possible there's other possible solutions. The environment variable |
Actually, I think d-bus and polkit still work (it's not quite chroot after all), at least I've just tried running Thank you for |
systemdspawner/systemdspawner/systemd.py
Line 158 in e75cadd
systemctl is-active
outputs a warning and exits with0
when run in a chroot environment (by "design", to quote the designer), after whichjupyterhub
attempts to stop a non-existent unit and fails:The text was updated successfully, but these errors were encountered: