add keyd init script
This commit is contained in:
parent
d06693479d
commit
83e5917fc6
2 changed files with 20 additions and 0 deletions
16
sys-apps/keyd/files/keyd.init
Normal file
16
sys-apps/keyd/files/keyd.init
Normal 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
|
||||
}
|
|
@ -21,3 +21,7 @@ BDEPEND=""
|
|||
PATCHES=(
|
||||
"${FILESDIR}"/Makefile.patch
|
||||
)
|
||||
|
||||
src_install() {
|
||||
newinitd "${FILESDIR}/keyd.init" keyd
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue