#!/sbin/runscript # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ DAEMON=/usr/sbin/sleepd PIDFILE=/var/run/sleepd.pid depend() { use logger } start() { ebegin "Starting sleepd" start-stop-daemon --quiet --start --pidfile ${PIDFILE} \ --exec ${DAEMON} -- ${SLEEPDOPTIONS} eend $? } stop() { ebegin "Stopping sleepd" start-stop-daemon --quiet --oknodo --stop --pidfile ${PIDFILE} \ --exec ${DAEMON} -- ${SLEEPDOPTIONS} eend $? }