#!/sbin/runscript # Copyright 2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License, v2 or later # $Header: /var/cvsroot/gentoo-x86/dev-vcs/subversion/files/svnserve.initd,v 1.1 2010/06/22 18:17:21 arfrever Exp $ depend() { need net } start() { ebegin "Starting pppoe-server" start-stop-daemon --start --quiet --background --make-pidfile \ --pidfile /var/run/pppoe-server.pid --exec /usr/sbin/pppoe-server \ -- -I ${PPPOE_INTERFACE:-eth0} -C ${AC_NAME:-`hostname`} -S ${SERVICE_NAME:-default} \ -N ${MAX_SESSIONS:-64} -x ${MAX_SESESSION_PER_MAC:-1} -L ${LOCAL_IP:-10.0.0.1.} -k -F ${OTHER_OPTIONS} eend $? } stop() { ebegin "Stopping pppoe-server" start-stop-daemon --stop --quiet --pidfile /var/run/pppoe-server.pid eend $? }