#!/sbin/runscript # Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ depend() { need net } start() { ebegin "Starting Dynamips Hypervisor" start-stop-daemon --start --quiet --exec /usr/bin/dynamips --chdir=/var/lib/dynamips -m -p /var/run/dynamips.pid --background -- ${DYNAMIPS_OPTS} eend $? } stop() { ebegin "Stopping Dynamips Hypervisor" start-stop-daemon --stop --quiet --exec /usr/bin/dynamips -p /var/run/dynamips.pid eend $? }