summaryrefslogtreecommitdiff
path: root/sys-apps/kmscon/files/kmsconvt.init
blob: e2ee1ff4b0caa57ac0beae3b2d9ef315af52538e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/sbin/openrc-run
# Copyright 1999-2026 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

description="KMS System Console"
supervisor="supervise-daemon"
port="${RC_SVCNAME#*.}"
command=/usr/bin/kmscon
command_args_foreground="--vt=${port} --no-switchvt ${kmscon_options}"
pidfile="/run/${RC_SVCNAME}.pid"

depend() {

    after local

	provide getty

}

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}"
}