Write pidfile and pidfile2 only after successful start