set hasstatus for service