#!/bin/sh
#Copyright: 2026 Aitor <aitor@genuen.org>
#License: CC0-1.0
mkdir -p /run/log/runit/elogind
if getent passwd _runit-log >/dev/null 2>&1 && command -v chpst >/dev/null 2>&1; then
	chown _runit-log:adm /run/log/runit/elogind 2>/dev/null || true
	exec chpst -u _runit-log svlogd -tt /run/log/runit/elogind
fi
exec svlogd -tt /run/log/runit/elogind
