New York City is suffering from dive-bar-collapse disorder, with old gin mills either disappearing (Jackie’s Fifth Amendment, Blarney Cove), forced to move (Subway Inn) or sanitized beyond recognition (Mars Bar).

But one venerable saloon has been pulled back from the brink, still looking somewhat like itself.

Holiday Cocktail Lounge, which closed in 2012, reopened Monday under the same name in the same spot on St. Marks Place. Though the management has changed, enough of the bar’s ancient innards have been retained that old regulars will recognize a familiar friend. The tight horseshoe bar where W. H. Auden and Allen Ginsberg (and possibly Leon Trotsky) once presided has been given a rubdown, though it has been moved about 20 feet to the center of the space. Also still there are the battered awning, a wooden phone booth and an exotic mural from the space’s earlier days as a burlesque cabaret.

The resurrection could not have happened without Robert Ehrlich, the snack food mogul who created Pirate’s Booty. He decided to buy the building and preserve the bar.

“If it weren’t for Robert, this bar would be gone,” said Barbara Sibley, a restaurateur and partner in the bar. She lives above the lounge, and owns La Palapa Cocina Mexicana next door. “N.Y.U. wanted to buy both these buildings,” she said. “There would have been nothing here.”