#!/sbin/runscript # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ depend() { need net } start() { ebegin "Starting HoTTProxy" start-stop-daemon --start --quiet --make-pidfile \ --pidfile /var/run/hottproxy-admin.pid \ --chdir /opt/hottproxy-0.24 \ --env PWD=/opt/hottproxy-0.24 \ --background \ --exec /usr/bin/perl HoTTProxy_Admin.pl start-stop-daemon --start --quiet --make-pidfile \ --pidfile /var/run/hottproxy.pid \ --chdir /opt/hottproxy-0.24 \ --env PWD=/opt/hottproxy-0.24 \ --background \ --exec /usr/bin/perl HoTTProxy.pl eend $? } stop() { ebegin "Stopping HoTTProxy" start-stop-daemon --stop --quiet --pidfile=/var/run/hottproxy.pid start-stop-daemon --stop --quiet --pidfile=/var/run/hottproxy-admin.pid eend $? }