add pid lock file