summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2014-09-19 21:54:23 +0000
committerJeroen Roovers <jer@gentoo.org>2014-09-19 21:54:23 +0000
commit952e5930b251e42e248d706c0ddc0c775014e017 (patch)
tree518ae70110a7bb848b442b9db1003a31c19a8554 /x11-drivers/nvidia-drivers/files
parentVersion bump (bug #523252 by Marius Brehler). (diff)
downloadgentoo-2-952e5930b251e42e248d706c0ddc0c775014e017.tar.gz
gentoo-2-952e5930b251e42e248d706c0ddc0c775014e017.tar.bz2
gentoo-2-952e5930b251e42e248d706c0ddc0c775014e017.zip
Add /etc/init.d/nvidia-persistenced (bug #523254 by Marius Brehler).
(Portage version: 2.2.13/cvs/Linux x86_64, signed Manifest commit with key A792A613)
Diffstat (limited to 'x11-drivers/nvidia-drivers/files')
-rwxr-xr-xx11-drivers/nvidia-drivers/files/nvidia-persistenced.init19
1 files changed, 19 insertions, 0 deletions
diff --git a/x11-drivers/nvidia-drivers/files/nvidia-persistenced.init b/x11-drivers/nvidia-drivers/files/nvidia-persistenced.init
new file mode 100755
index 000000000000..af9127ff506a
--- /dev/null
+++ b/x11-drivers/nvidia-drivers/files/nvidia-persistenced.init
@@ -0,0 +1,19 @@
+#!/sbin/runscript
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/x11-drivers/nvidia-drivers/files/nvidia-persistenced.init,v 1.1 2014/09/19 21:54:23 jer Exp $
+
+pidfile="/var/run/nvidia-persistenced/nvidia-persistenced.pid"
+
+start() {
+ ebegin "Starting nvidia-persistenced"
+ start-stop-daemon --start --quiet --pidfile ${pidfile} \
+ --background --exec /opt/bin/nvidia-persistenced --
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping nvidia-persistenced"
+ start-stop-daemon --stop --quiet --pidfile ${pidfile}
+ eend $?
+}