On Thu, 14 Jun 2007, Henry Bramlet wrote:
> I have a really stupid question. I've downloaded and installed from source
> the pen loadbalancer. Unfortunately, I cannot figure out how to stop the
> server now that I've started it.
>
> I started using this:
> pen -H 4000 localhost:8000 localhost:8001
>
> What command do I use to turn off this forwarding?
You kill pen with the command kill. ;-)
ulric_at_ulric-nx9420:~$ pen 8088 siag.nu:80
ulric_at_ulric-nx9420:~$ ps -ef|grep pen
ulric 6553 1 0 22:08 ? 00:00:00 pen 8088 siag.nu:80
ulric 6555 5855 0 22:08 pts/4 00:00:00 grep pen
ulric_at_ulric-nx9420:~$ kill 6553
ulric_at_ulric-nx9420:~$ ps -ef|grep pen
ulric 6557 5855 0 22:08 pts/4 00:00:00 grep pen
You can use the -p option to store the pid in a file.
ulric_at_ulric-nx9420:~$ pen -p /tmp/pen.pid 8088 siag.nu:80
ulric_at_ulric-nx9420:~$ ps -ef|grep pen
ulric 6590 1 0 22:11 ? 00:00:00 pen -p /tmp/pen.pid 8088 siag.nu:80
ulric 6592 5855 0 22:11 pts/4 00:00:00 grep pen
ulric_at_ulric-nx9420:~$ kill `cat /tmp/pen.pid`
ulric_at_ulric-nx9420:~$ ps -ef|grep pen
ulric 6595 5855 0 22:11 pts/4 00:00:00 grep pen
Ulric
Received on Thu Jun 14 2007 - 22:20:33 CEST
This archive was generated by hypermail 2.2.0 : Thu Jun 14 2007 - 22:20:34 CEST