#!/usr/bin/execlineb -P

foreground { mkdir -p /sys/fs/cgroup/elogind }
foreground { mount -n -t cgroup -o none,nodev,noexec,nosuid,name=elogind elogind /sys/fs/cgroup/elogind }
foreground { mkdir -p /run/systemd }

envfile /etc/s6-rc/config/elogind.conf
importas -sCuD "" Args Args

fdmove -c 2 1
exec -c /usr/libexec/elogind ${Args}
