Save PID file for data publisher correctly