Bottom-placed Glenavon snatched a dramatic win thanks to late goals from Diarmuid O'Carroll and Andy Graham (2).
O'Carroll netted a twice-taken penalty after Andy Hunter's foul on Brendan Shannon on 80 minutes and Graham struck twice near the end.
Neal Gawley had headed Distillery into an early lead but Niall Henderson got a close-range equaliser before Ryan Harpur fired Glenavon into a 2-1 lead.
David Cushley shot Distillery's second goal in the 36th minute.
He netted after a lofted ball into the box had been headed down by Andy Hall.
Glenavon desperately needed the victory to ease the pressure whch had been mounting on manager Marty Quinn.
Next Saturday they face another crucial clash against Donegal Celtic.
Glenavon battled back well after conceding after just six minutes when Gawley stooped to head in from Andy Hall's cross after slack work by the Glenavon defence.
Kyle Neill, Jay Magee and keeper Andy Coleman were guilty of overplaying it in their own box and Hall won possession.
Glenavon levelled in the 18th minute when striker Mark Miskimmin dispossessed Kevin Kelbie and, when his cross rebounded up off a home defender, Henderson pounced to head in from close-range.
Harpur then fired Glenavon 2-1 up with an unstoppable right-foot shot from 25 yards, but Cushley equalised with a 36th-minute shot after Hall had chested the ball down in the penalty area.
O'Carroll's penalty restored Glenavon's lead, the spot-kick having to be taken twice because of encroachment.
Fellow substitute Graham shot number four for the Lurgan men in the 90th minute before heading another deep into stoppage-time.
Glenavon are now just two points behind Dungannon Swifts and Carrick Rangers.