add keyd init script

This commit is contained in:
~keith 2023-09-07 10:31:55 -04:00
parent d06693479d
commit 83e5917fc6
Signed by: keith
GPG Key ID: 5BEBEEAB2C73D520
2 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,16 @@
#!/sbin/openrc-run
# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
name="keyd daemon"
description=""
command=/usr/bin/keyd
command_args="${keyd_args}"
command_background=true
pidfile="/run/${RC_SVCNAME}.pid"
start_stop_daemon_args='-N -20'
depend() {
need localmount
before display-manager
}

View File

@ -21,3 +21,7 @@ BDEPEND=""
PATCHES=(
"${FILESDIR}"/Makefile.patch
)
src_install() {
newinitd "${FILESDIR}/keyd.init" keyd
}