pen not responding to kill -HUP?

From: Hendra <>
Date: Tue, 08 May 2007 14:26:24 +0800


I'm running the latest pen (in both Solaris and Gentoo) like this:

    pen -F /etc/pen.cfg -X -C localhost:1234 -p /var/run/ public_ip:80

and my pen.cfg looks like this:

    web03 / # cat /etc/pen.cfg
    server 0 address port 8080 weight 1
    server 1 address port 8000 weight 2

the manpage says I can edit pen.cfg and reload the config file by doing:

    kill -HUP `cat /var/run/`

so I edited pen.cfg to remove server 1 and run kill -HUP on the current
pid. after that, a check on pid showed that pen's pid remain unchanged,
and server1 still accepting connection (checked with penctl
localhost:1234 servers). so this kill -HUP thing doesn't seem to work
for me.. did I miss anything? is there any alternative way to gracefully
take out once of the server without restarting pen? If I use blacklist
(e.g penctl localhost:1234 server 1 blacklist 3600), is there anyway to
clear the blacklist before the 3600 seconds lapsed without restarting
pen? my objective is to cleanly "take out" any one of the server without
affecting the others, and editing config file then kill -HUP sounds like
a solution, but unfortunately that doesn't work. Can anyone help me out
on this?

Many thanks in advance!

Received on Tue May 08 2007 - 08:40:01 CEST

This archive was generated by hypermail 2.2.0 : Tue May 08 2007 - 08:40:03 CEST