mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-03-27 08:22:25 +01:00
28 lines
780 B
Bash
28 lines
780 B
Bash
#!/sbin/openrc-run
|
|
|
|
description="KMS System Console"
|
|
supervisor="supervise-daemon"
|
|
port="${RC_SVCNAME#*.}"
|
|
command=/usr/bin/kmscon
|
|
command_args_foreground="--vt=${port} --seats=seat0 --no-switchvt --login -- /sbin/agetty -o '-p -- \\u' --noclear -- -"
|
|
pidfile="/run/${RC_SVCNAME}.pid"
|
|
|
|
depend() {
|
|
after local
|
|
}
|
|
|
|
start_pre() {
|
|
if [ "$port" = "$RC_SVCNAME" ]; then
|
|
eerror "${RC_SVCNAME} cannot be started directly. You must create"
|
|
eerror "symbolic links to it for the ports you want to start"
|
|
eerror "kmscon on and add those to the appropriate runlevels."
|
|
return 1
|
|
else
|
|
export EINFO_QUIET="${quiet:-yes}"
|
|
fi
|
|
}
|
|
|
|
stop_pre() {
|
|
export EINFO_QUIET="${quiet:-yes}"
|
|
}
|