#!/sbin/runscript # Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ PIDFILE=/run/burp-server.pid depend() { need localmount after bootmisc use net } start() { ebegin "Starting burp server" start-stop-daemon --start \ --pidfile "$PIDFILE" \ --make-pidfile \ --background \ --exec /usr/sbin/burp -- -c /etc/burp/burp-server.conf -F eend $? "Failed to start burp server" } stop() { ebegin "Stopping burp server" start-stop-daemon --stop \ --pidfile "$PIDFILE" eend $? "Failed to stop burp server" }