Here's a thread about contracts, though it does not specifically address maintenance issues:
http://www.groundtradesxchange.com/f...=2021#post2021
I think many of the elements of the contract would translate to maintenance, except there would need to be some language in there about the ongoing nature of the work you do.