summaryrefslogtreecommitdiff
path: root/x11-drivers/nvidia-drivers/files/nvidia-persistenced.initd
blob: 27d8bb37d98ac8d88d820e076445a6ad7c253881 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/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
}