update pid-file