def systemd_coredump_enabled():
    """Returns True if kernel.core_pattern sysctl invokes systemd-coredump"""
    with open('/proc/sys/kernel/core_pattern', 'rt') as f:
        text = f.read()
        return text.startswith('|') and 'systemd-coredump' in text
