fixed the tvheadend can't restart problem.