abstinence

(n) voluntary forbearance especially from indulgence of an appetite or craving
Peter's dad was an alcoholic so Peter abstained from booze and stayed sober his whole life.