Update pid file