def _can_query_journald():
    # Process exists:
    if not which("journalctl"):
        return False
    # Journald is actually running on this machine (e.g. on some Ubuntu
    # versions it can be available but not running).
    try:
        # Output as little as possible. One line of log since since last boot.
        check_output(["journalctl", "--boot", "--lines=1"], stderr=STDOUT)
    except CalledProcessError:
        return False
    return True
Entity URI reference.
dataset/ETHPy150Open ClusterHQ/flocker/flocker/common/functional/test_script.py/_can_query_journald--crossover with--dataset/ETHPy150Open openstack/python-barbicanclient/barbicanclient/acls.py/ACL.entity_ref