add hasstatus and hasrestart to service