Eszopiclone Generic name Lunesta medication is commonly used to treat sleep disorders. It is often considered as a safe sleeping pill.