Restarting Services in an Order

Good morning,

Is there a way to enable Automox to restart services in a particular order on a server?

If you restart them all within the same worklet, then the order in which you cycle the services in the code should be preserved. You could also put in some delays to make sure that there’s no overlap. This worklet has an example of that:

If you put the restarts in different worklets then that wouldn’t work reliably.

Does that give you the answer you need?

2 Likes

Nic… Thank you very much. Yes I believe this will be very helpful!

2 Likes

The next command should not run until the previous one finishes. It not, then you can just put wait timers between them like @Nic pointed out in the reboot notification Worklet.

1 Like