Plaintiff appeals from two orders: (1) the order dismissing its action as to defendant Bush; and (2) the subsequent order denying its motion to vacate the dismissal. It contends that the dismissal was improper because of a prior binding adjudication that defendant Bush was concealing himself to avoid service of summons during the final days of the three-year period provided for such service (Code Civ. Proc., § 581a) and because thereafter Bush was served within a reasonable time, that is one week, following the expiration of said three-year period. We have concluded that plaintiff’s contention must be sustained.
Plaintiff filed its action against several defendants on December 15, 1952, and summons was issued on that date. The first defendant was served in February, 1955. During the next several months plaintiff was engaged in making a change of counsel, and nothing further was done in completing the service of process. On December 1, 1955, new counsel advised plaintiff that the three-year period for service and return of the summons would soon expire, and thereafter feverish attempts were made to serve defendant Bush. According to the affidavits of several process servers, many visits were made to Bush’s home and office between December 12 and December 15, but he could not he located. Upon the basis of these affidavits, plaintiff obtained on December 15, 1955, an order authorizing service by publication, premised on the finding that defendant Bush was concealing himself to avoid service. Continued efforts were made, however, to effect personal service on Bush through repeated visits to his home and office, and finally on December 22, 1955, he was personally served.
On December 28, Bush filed a notice of motion to quash service. The hearing was set for January 3, 1956, but plaintiff’s counsel obtained a continuance to January 12 because of the holidays. The day before the hearing on his motion, Bush filed an “amended and supplemental notice of special appearance and motion to quash summons and service thereof together with motion to dismiss action’’ as to him for failure to serve and return the summons within the three-year limit provided in section 581a of the Code of Civil Procedure. Bush also filed an affidavit stating that he was readily accessible at *739 his home and office on the days immediately prior to December 15, 1955, and was not concealing himself in any way. The court granted his motion to dismiss and entered an order of dismissal. Thereafter plaintiff made a motion to vacate the dismissal, but its motion was denied.
Initially, we must consider the effect, in the proceedings to dismiss the action, of the prior order authorizing service on Bush by publication. Section 412 of the Code of Civil Procedure provides that “Where the person on whom service is to be made . . . can not, after due diligence, be found within the State; or conceals himself to avoid the service of summons; . . . and the fact appears by affidavit to the satisfaction of the court, or a judge thereof; . . . such court, or judge, may make an order that the service be made by the publication of the summons. ’ ’ In
Rue
v.
Quinn,
It is settled law in California that “a valid order made
ex parte
may be vacated only after a showing of cause for the making of the latter order, that is, that in the making of the original order there was (1) inadvertence, (2) mistake, or (3) fraud.”
(Sheldon
v.
Superior Court,
Section 581a of the Code of Civil Procedure imposes upon the court the duty to dismiss an action where the summons has not been served and returned within three years after commencement of the action,
except
that no dismissal can be granted where the failure to serve the defendant occurs “during his absence from the State, or while he has secreted himself within the State to prevent the service of summons on him.” This is a rule “designed to encourage promptness in prosecution of actions.”
(Gonsalves
v.
Bank of America,
Similar both in general purpose and language are the provisions of section 583 of the Code of Civil Procedure requiring the dismissal of actions not brought to trial within five years after being filed. Despite the apparently mandatory language of that section, this court has found many “implied exceptions” where it was “impracticable and futile” to bring the action to trial within the designated five-year period.
(Rose
v.
Knapp,
We are therefore of the view that notwithstanding *741 the mandatory language of section 581a, the trial court is vested with discretion in applying the exceptions comparable to the discretion with which it is vested in applying the exceptions to section 583. As with the exercise of the court’s other inherent and statutory powers to dismiss actions for want of diligence in either serving the summons or bringing the action to trial, the discretion permitted must be “exercised in accordance with the spirit of the law and with a view of subserving, rather than defeating, the ends of substantial justice.” (16 Cal.Jur.2d, Dismissal, Discontinuance, and Nonsuit, § 30, p. 179.) Each case must be decided on its own particular facts, and no fixed rule can be prescribed to guide the court in its exercise of this discretionary power under all circumstances.
Here it appears that defendant Bush was finally served on December 22, 1955, only one week after the expiration of the three-year period provided for service by section 581a. During the last few days of that period, Bush had been found by the trial court to have been concealing himself to avoid service, and consequently on December 15 it had ordered service by publication of summons. It was only through repeated efforts during the following week that personal service on Bush was finally accomplished on December 22. Thus, it is clear that Bush was served within a reasonable period after the time that the trial court had found that he had been concealing himself to avoid service. We therefore conclude that the trial court’s dismissal of this action as to defendant Bush constituted an abuse of discretion under the circumstances, since plaintiff was thereby denied a reasonable opportunity to effect service of process following the judicial determination that Bush had been concealing himself.
The above conclusion makes it unnecessary to discuss other points raised by the parties.
The orders are reversed.
Gibson, C. J., Shenk, J., Carter, J., Traynor, J., Sehauer, J., and McComb, J., concurred.
