What is the general process that police agencies use to deal with citizen complaints

What is the general process that police agencies use to deal with citizen complaints, and what are some of the levels of discipline and sanctions that can be used with officers?