#!/usr/bin/env /lib/runit/invoke-run
#Copyright: 2022-2024 Lorenzo Puliti <plorenzo@disroot.org>
#           2026 Aitor <aitor@genuen.org>
#License: CC0-1.0

sv start dbus >/dev/null 2>&1 || true

# Only wait for vdev when it is the device manager; otherwise eudev/mdev/etc.
[ ! -x /usr/sbin/vdevd ] || sv check vdev || exit 170

exec 2>&1

exec /usr/libexec/elogind
