Write pid for fpm process