He then went on to be principal of Norsewood School from 1988 until 2001, before returning to Rua Roa School as relieving principal where he remained until it was closed in 2003 by then Education Minister Trevor Mallard as part of an education review.
At the time of the closure Mr Gilvray said with 61 children and a growing role the merger was difficult to take.
After some time as relieving principal at Papatawa School, Mr Gilvray became relieving principal at Ruahine School where many of his former Rua Roa students had transferred too.
After working at many schools around our district for more than 30 years Mr Gilvray was held in very high esteem by so many and has been described as a true gentleman and professional and a great influence on so many lives.
"I had the pleasure of working on committees at Matamau School with him when my children Michelle and Tony attended and I was then delighted when Michelle taught under him at Norsewood," Norsewood School administrator Lorraine McKay said. "He was an inspiration to us all."
Mrs McKay's daughter, Michelle Mitchelle, said the things she did and learnt with Mr Gilvray were truly amazing.
"I am honoured I then got to work alongside him too. Mr G was one of a kind and I can't start to describe how much he influenced who I am today," she said. "Mr G was one of those teachers you will never forget and the best boss anyone could hope for."
Norsewood's Bernard Murphy remembers Mr Gilvray as "the most awesome man".
And Anna Kirker recalled the adventures down at the creek and the tricks Mr Gilvray would sometimes play on his students, as well as his sense of humour and cheeky laugh.
"He was an awesome teacher who was dedicated to our school," she said on an online tribute page.
Mr Gilvray was also involved with the Lions Club and was a skilled hockey player who saved many a match as the team's goalie.