#!/sbin/runscript # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 pidfile=/var/run/nvidia-smid.pid bin=/opt/bin/nvidia-smi depend() { after modules } start() { ebegin "Starting Nvidia System Management Interface" sleep 1s rm -f ${pidfile} # now start up start-stop-daemon --start --quiet --pidfile ${pidfile} \ --make-pidfile --background --exec ${bin} -- -q -l 300 eend $? } stop() { ebegin "Stopping Nvidia System Management Interface" start-stop-daemon --stop --quiet --pidfile ${pidfile} eend $? }