#!/sbin/runscript # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 depend() { need localmount use dns logger puppetmaster netmount nfsmount } start() { ebegin "Starting ${SVCNAME}" start-stop-daemon --start --background --make-pidfile \ --pidfile /var/run/${SVCNAME}.pid \ --exec java -- ${JAVA_ARGS} -jar ${INSTALL_DIR}/${JARFILE} services -c ${CONFIG} eend $? } stop() { ebegin "Stopping ${SVCNAME}" start-stop-daemon --stop --quiet --pidfile /var/run/${SVCNAME}.pid eend $? }