Following a five-hour debate, the City Council voted 5-2 on Monday to pass a medical marijuana ordinance that limits dispensaries to light industrial zones, which means most of the current pot shops in Ocean Beach, Pacific Beach and downtown will have to close. Nearly 500 people attended the City Council session, which was devoted to the sole topic of a medical marijuana ordinance. The council voted to allow marijuana dispensaries in Mission Valley, Barrio Logan, Southeast San Diego, Otay Mesa and San Ysidro. District 2 City Councilman Todd Gloria made the motion for the ordinance but conceded early in the discussion that the ordinance is “more restrictive that I would care for,” a remark that drew applause. Dispensaries cannot be within 600 feet of schools, parks, libraries, daycare centers or churches. Gloria changed the 1,000-foot restriction to 600 feet. Dispensaries must have a security system, be open 7 a.m. to 9 p.m. daily, obtain a conditional-use permit and be nonprofit. Patients will be allowed to possess a pound of pot if they have a medical marijuana state identification card and are allowed to grow 24 marijuana plants. Several patients spoke about how marijuana increases appetite, especially for those with AIDS, and some said medical pot decreases pain. Rudy Reyes, who suffered burns over 70 percent of his body in the 2003 wildfires, said it worked for him. Voting in favor were council President Tony Young, and councilmembers Kevin Faulconer, Sherri Lightner and Marti Emerald. David Alvarez was absent. Councilmembers Carl DeMaio and Lorie Zapf voted against the stricter dispensary rules. DeMaio said the city’s finances are in crisis and the cost of enforcing the ordinance is unknown. Zapf said she was disappointed colleges were not listed in the 600-foot restriction. It is still illegal to transport marijuana.