how to keep workers, routers, transports processes alive after node server restart?

Ok, one way i can think of is that whenever server gets restart then upon restart i will initiate the mediasoup process for all the rooms that were active before server restart and notify apps to connect to room again.

Is there any other way in your point of view?