Basbosa records pid to pid file