Set pid file