#!/sbin/runscript # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ depend() { need vprocunhide use net } start() { ebegin "Starting ${SVCNAME}" if [[ -f "/var/run/${SVCNAME}.pid" ]] ; then rm -f "/var/run/${SVCNAME}.pid" fi start-stop-daemon \ --start \ --pidfile "/var/run/${SVCNAME}.pid" \ --exec /usr/sbin/vcd eend $? } stop() { ebegin "Stopping ${SVCNAME}" start-stop-daemon \ --stop \ --pidfile "/var/run/${SVCNAME}.pid" \ --exec /usr/sbin/vcd eend $? }