Add better pidfile support. The ability to move logs at the end.