#!/sbin/runscript # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ depend() { need net use dns mysql } start() { CLASSPATH=`java-config -p icarus-vmpsd,commons-logging,log4j,jdbc-mysql 2> /dev/null` CLASSPATH="/etc/vmpsd:${CLASSPATH}" OPTS="-server" ebegin "Starting VMPSd" export CLASSPATH start-stop-daemon \ --start \ --background \ --make-pidfile \ --pidfile /var/run/vmpsd.pid \ --exec `java-config --java` -- ${OPTS} edu.ufl.icarus.vmpsd.VMPSd eend $? "Failed to start VMPSd" } stop() { ebegin "Stopping VMPSd" start-stop-daemon --stop --pidfile /var/run/vmpsd.pid eend $? "Failed to stop VMPSd" rm -f /var/run/vmpsd.pid }