aboutsummaryrefslogtreecommitdiff
path: root/system/nvidia-driver/README.nvidia-persistenced
diff options
context:
space:
mode:
authorLenard Spencer <lenardrspencer@gmail.com>2020-04-10 00:28:23 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-04-10 00:28:23 +0700
commitd10cd53348e12573a0df7f6957fab09e9f320784 (patch)
treebced3a21759a58c0581361099e5ce68cbd9f457c /system/nvidia-driver/README.nvidia-persistenced
parentcd90c74dab71b513b5432a8773f7573f72314414 (diff)
system/nvidia-driver: added rc.nvidia-persistenced.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/nvidia-driver/README.nvidia-persistenced')
-rw-r--r--system/nvidia-driver/README.nvidia-persistenced27
1 files changed, 27 insertions, 0 deletions
diff --git a/system/nvidia-driver/README.nvidia-persistenced b/system/nvidia-driver/README.nvidia-persistenced
new file mode 100644
index 0000000000000..ba1825eb86095
--- /dev/null
+++ b/system/nvidia-driver/README.nvidia-persistenced
@@ -0,0 +1,27 @@
+The driver now includes rc.nvidia-persistenced as an option. While it can
+be run as root, it is more secure to run it as an unpriveleged user, so we
+run it as user nvidia. Create the nvidia user and group with the following:
+
+ # groupadd -g 365 nvidia
+ # useradd -u 365 -g 365 -c "Nvidia" -d /dev/null -s /bin/false nvidia
+
+To activate the daemon, add the following to /etc/rc.d/local:
+
+# Start the nvidia-persistenced daemon:
+if [ -x /etc/rc.d/rc.nvidia-persistenced ]; then
+ /etc/rc.d/rc.nvidia-persistenced start
+fi
+
+and then 'chmod +x /etc/rc.d/rc.nvidia-persistenced' to make it executable.
+
+Add the following to /etc/rc.d/rc.local_shutdown:
+
+# Stop the nvidia-persistenced daemon:
+if [ -x /etc/rc.d/rc.nvidia-persistenced ]; then
+ /etc/rc.d/rc.nvidia-persistenced stop
+fi
+
+NOTE: This may not work on all systems. If you encounter problems
+with it, just 'chmod -x /etc/rc.d/rc.persistenced' and it will no
+longer load. YMMV.
+