Write PID to running tomato file