Guillem Jover <guil...@debian.org> writes:
> On Wed, 2010-07-07 at 08:59:24 -0700, Russ Allbery wrote:

>> +    postrotate
>> +        [ -f /var/run/foo.pid ] && kill -s HUP `cat /var/run/foo.pid`
>> +    endscript

> Probably better to recommend using start-stop-daemon, as it's more
> robust and should properly handle for example the case of a stale pid
> file pointing to the wrong binary (which with HUP might terminate an
> unsuspecting victim).

Good point.  I now have:

    postrotate
        start-stop-daemon -K -p /var/run/foo.pid -s HUP -x /usr/sbin/foo -q
    endscript

-- 
Russ Allbery (r...@debian.org)               <http://www.eyrie.org/~eagle/>



-- 
To UNSUBSCRIBE, email to debian-policy-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/87hbkaaqpn....@windlord.stanford.edu

Reply via email to