A California man was charged with eight counts of first-degree murder on Friday in a shooting spree at Seal Beach hair salon that killed his ex-wife and seven other people, prosecutors said.

Scott Evans Dekraai, 42, was also charged with a single count of attempted murder, Orange County District Attorney Tony Rackauckas said at a news conference in Santa Ana.

Rackauckas said he would seek the death penalty against Dekraai.

Dekraai was arrested about half a mile from Salon Meritage on Wednesday following the mass killing that has been called the worst in Orange County history.

Dekraai's former wife, Michelle Fournier, was a hairstylist at Salon Meritage, friends and business associates said, and the couple, who divorced in 2007, had been embroiled in a child custody battle over their 8-year-old son

Fournier was among the eight people shot to death, along with her friend Christy Lynn Wilson and salon owner Randy Fannin.

The lone survivor, a woman in her 70s, was left in critical condition at Long Beach Memorial Hospital.

On Thursday night, hundreds of mourners gathered outside Salon Meritage in a candlelight vigil for the victims, the crowd spilling into a nearby street.