plutonium239@free.fr wrote on 12/13/2007 02:14:17
AM:
> version of Ubuntu 7.10. That's why I choose the simplest version :
apt-get
> install pound :) , I can't stop and start daemon simply by /etc/init.d/stop
or
> start without write a script to do that !
Attached is an init script I wrote (for SuSE Linux)
to start up multiple instances of pound. It does this by looking
in /usr/local/etc/pound.d/ for any file ending in ".conf", and
starts a process for that configuration file.
Arguments are as follows:
start - start an instance for each file in /usr/local/etc/pound.d
stop - kill all running instances of pound
status - runs a poundctl -c /tmp/instance.ctl for
each instance found in /tmp/*.ctl
configtest - does a config check on all config files
in /usr/local/etc/pound.d
To use, place it in /etc/init.d/ and chmod 755 /etc/init.d/pound
As to the remainder of your question - I think you'll
find that the only way to do what you're asking for (without modifying
source code) is by using iptables.
Hope this helps,
Justin