Wikipedia
Prayopavesa
Prayopavesa (, literally resolving to die through fasting) is a practice in Hinduism that denotes the suicide by fasting of a person, who has no desire or ambition left, and no responsibilities remaining in life. It is also allowed in cases of terminal disease or great disability. A similar practice exists in Jainism, termed Santhara.