Skip to content

service_running doesn't account for chroot #90

Description

@SomeoneSerge

systemctl is-active outputs a warning and exits with 0 when run in a chroot environment (by "design", to quote the designer), after which jupyterhub attempts to stop a non-existent unit and fails:

Running in chroot, ignoring command 'is-active'
Running in chroot, ignoring command 'stop'
500 GET /hub/spawn (127.0.0.1): Error in Authenticator.pre_spawn_start: Exception Could not stop already existing unit

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions