Resilience: add pidfiles in PBS.