[main]
@type = classic
@version = @VERSION@
@description = "systemd-logind daemon"
@user = ( root )
@depends = ( dbus )

[start]
@execute = (
  execl-toc -m /sys/fs/cgroup/systemd-logind -t cgroup -o none,name=systemd-logind -d cgroup
  execl-toc -m /run/systemd -t tmpfs -o nosuid,nodev,noexec,mode=0755 -d none
  execl-toc -m /run/user -t tmpfs -o nosuid,nodev,noexec,mode=0755 -d none
  /usr/lib/systemd/systemd-logind
)

[stop]
@execute = ( s6-rmrf ${pid_file} )

[environment]
pid_file=!/run/systemd-logind.pid
