mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-12-20 18:34:35 +00:00
Tiny script that was entirely written by me, and came to prefer installed+redistributed simple scripts to not carry extra baggage. (MIT is already in the ebuild's LICENSE) Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
11 lines
331 B
Text
11 lines
331 B
Text
#!/sbin/openrc-run
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
description="Maintain persistent software state in the NVIDIA driver"
|
|
command="nvidia-persistenced"
|
|
command_args="${NVPD_USER:+--user ${NVPD_USER}} ${ARGS}"
|
|
pidfile="/var/run/nvidia-persistenced/nvidia-persistenced.pid"
|
|
|
|
stop_post() {
|
|
rmdir "${pidfile%/*}" 2>/dev/null || true
|
|
}
|