#!/bin/sh
# Copyright © 2022 Simon McVittie
# SPDX-License-Identifier: GPL-2.0-or-later

set -eu

if [ -d /run/systemd/system ]; then
    echo "systemd"
    exit 0
else
    # This is probably sysv-rc or openrc, and we don't really care which;
    # what matters is that it's not systemd
    echo "unknown"
    exit 0
fi
