We study a warm standby n-unit system. The system functions as long as there is one operative unit. When the unit online fails, a unit in standby becomes the new unit online, if any. When a unit fails it goes to repair. There is a repairman. The units are repaired following the arrival order. The unit online has a lifetime governed by a phase-time distribution. The repair times follow a phase-type distribution. The warm standby units have lifetimes exponentially distributed. All the other times are negligible. This system extends many others of frequent use in the literature. We show that this system is governed by a level-dependent quasi-birth-and-death process. The availability, rate of occurrence of failures and other magnitudes of interest are calculated. The mathematical expressions are algorithmically and computationally implemented, using the Matlab program.