What is the meaning of -cy?

Used to form nouns of state, condition or quality e.g. obstinacy.

Used to form nouns of rank or office e.g. abbacy.

Source: wiktionary.org