#!/sbin/runscript # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ checkconfig() { if [ ! -f /etc/conf.d/cpqarrayd ] ; then eerror "Please create /etc/conf.d/cpqarrayd" return 1 fi return 0 } depend() { need net logger } start() { checkconfig || return $? ebegin "Starting cpqarrayd" start-stop-daemon --start \ --quiet \ --background \ --exec /usr/sbin/cpqarrayd \ --pidfile /var/run/cpqarrayd.pid \ -- $CPQ_PARAMS eend $? "Failed to start cpqarrayd" } stop() { ebegin "Stopping cpqarrayd" start-stop-daemon --stop \ --pidfile /var/run/cpqarrayd.pid \ --exec /usr/sbin/cpqarrayd eend $? "Failed to stop cpqarrayd" }