How can I make a tinydm service?
There is an openrc one only.
https://gitlab.com/postmarketOS/tinydm
#!/sbin/openrc-run
# Copyright 2020 Oliver Smith
# SPDX-License-Identifier: GPL-3.0-or-later
supervisor=supervise-daemon
name="tinydm"
description="tinydm"
command="/usr/bin/autologin"
command_args="tinydm-run-session"
depend() {
provide display-manager
need localmount
want dbus elogind
}
start_pre() {
# default to 1000 if none set in config
[ -z "$AUTOLOGIN_UID" ] && AUTOLOGIN_UID=1000
user=$(getent passwd ${AUTOLOGIN_UID} | cut -d: -f1)
if [ -z "$user" ]; then
eerror "ERROR: unable to find user with uid $AUTOLOGIN_UID"
return 1
fi
command_args="$user $command_args"
}
I made this for dinit, in /etc/dinit.d/tinydm:
type = process
command = "/usr/bin/autologin tinydm-runsession"
smooth-recovery = true
logfile = /var/log/dinit/tinydm.log
depends-on = dbus logind
waits-for = loginready
waits-for.d = live.d
It is not working:
dinitctl start tinydm
dinitctl: failed to find service description.
dinitctl: check service description file exists / service name spelling.
I have autologin installed.