summaryrefslogtreecommitdiff
path: root/system/nvidia-legacy390-driver/README.nvidia-persistenced
diff options
context:
space:
mode:
authorLenard Spencer <lenardrspencer@gmai.com>2020-04-10 00:30:11 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-04-10 00:30:11 +0700
commit00eaecf3ff2cdb1b5b3b55d72859318316e3b871 (patch)
tree71a483911a2c15c760042c97a5bdb8d70114125e /system/nvidia-legacy390-driver/README.nvidia-persistenced
parent13be2dd8a9eb24c0c37cf1c62e0f616633dee5e1 (diff)
downloadslackbuilds-00eaecf3ff2cdb1b5b3b55d72859318316e3b871.tar.gz
system/nvidia-legacy390-driver: added rc.nvidia-persistenced.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/nvidia-legacy390-driver/README.nvidia-persistenced')
-rw-r--r--system/nvidia-legacy390-driver/README.nvidia-persistenced26
1 files changed, 26 insertions, 0 deletions
diff --git a/system/nvidia-legacy390-driver/README.nvidia-persistenced b/system/nvidia-legacy390-driver/README.nvidia-persistenced
new file mode 100644
index 0000000000..6a701bb7bd
--- /dev/null
+++ b/system/nvidia-legacy390-driver/README.nvidia-persistenced
@@ -0,0 +1,26 @@
+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.