1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 03:05:48 +03:00
aports/community/greetd/greetd.initd
2023-01-08 11:43:31 +01:00

23 lines
442 B
Bash

#!/sbin/openrc-run
name="greetd"
description="Greeter daemon"
: ${cfgfile:="/etc/greetd/config.toml"}
command=/usr/sbin/greetd
command_args="--config $cfgfile ${command_args:-}"
command_background=yes
pidfile="/run/$RC_SVCNAME.pid"
required_files="$cfgfile"
start_pre() {
# note that this user is the user from the config.toml
checkpath -d -m750 -o greetd:greetd /run/greetd/
}
depend() {
need localmount
provide display-manager
}