#!/sbin/runscript # Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-cdr/webcdwriter/files/webcdwriter.rc,v 1.1 2005/06/10 18:24:46 pylon Exp $ depend() { need net } start() { ebegin "Starting CDWserver" for tool in cdrdao cdrecord mkisofs readcd do if [ -e /usr/bin/$tool ] then cp /usr/bin/$tool /var/CDWserver/bin fi done start-stop-daemon --start --quiet --pidfile /var/run/CDWserver.pid \ --exec /usr/sbin/CDWserver eend $? touch /var/lock/subsys/CDWserver } stop() { ebegin "Stopping CDWserver" start-stop-daemon --stop --quiet --pidfile /var/run/CDWserver.pid eend $? rm -f /var/lock/subsys/CDWserver }