This documentary goes behind the scenes at an eccentric boarding school in Ireland, Headfort, and lands upon two unwitting stars: a husband and wife who have taught there for decades. (Magnolia Pictures/Magnolia Pictures)

In the documentary "School Life" — a charmingly eccentric portrait of Headfort, Ireland's only boarding school for children ages 7 to 13 — the emphasis is clearly on life, and not school. Although several of the students followed by Neasa Ni Chianain and David Rane over one academic year wind up getting accepted into such prestigious secondary schools as Eton and Harrow, it's never entirely clear, from the movie's scant focus on academics, how they got there.

Instead, "School Life" focuses on the surrogate parenting that appears to be a bedrock principle guiding the school's faculty and staff, chiefly embodied by longtime teachers John Leyden and his wife, Amanda. An earlier version of the film was titled "In Loco Parentis," a Latin phrase meaning "in place of the parent."

For almost 50 years, Amanda has taught English, and John, Latin and math. But they're rarely seen teaching. John also runs the music room, a graffiti-covered enclave in the school's rambling, shabby-chic main building where kids come to hang out (and maybe try to render a few pop tunes, in flat, endearingly off-key covers).

Although one scene in "School Life" depicts a homesick child being comforted, the Headfort students seem almost preternaturally happy — not to mention a bit wild. One exception is Eliza Somerville, a quiet, unsmiling 12-year-old who becomes the film's taciturn center of gravity — before waltzing off with three academic prizes. In one of her final on-camera appearances, Eliza becomes, quite suddenly, chatty and beaming. I could watch a whole movie about her.

But the film's true subjects are the aging, lovably quirky Leydens: John with his unkempt cloud of long, thinning hair, and Amanda with her pierced eyebrow. These chain-smoking fixtures appear to love their jobs as much as their young charges, calling them "honey" and "darling" with the world-weary tone of grandparents whose impatience with impetuous youth can't dim an underlying affection.

In tone, "School Life" feels like a recruiting film for prospective students. It isn't exactly profound, except perhaps in the way it makes a case for the theory that happiness comes first, and then learning.

PG-13. At Landmark's West End Cinema. Contains some strong language and smoking. 99 minutes.