write pid file from cgr-engine