abstinence

(n) voluntary forbearance especially from indulgence of an appetite or craving
Because Peter came from a long line of alcoholics he abstained from booze.