Optimal control of two phase queueing systems with setup time and n-policy for an unreliable server with delayed repair