Solved

Restarting Services in an Order

  • 21 October 2019
  • 3 replies
  • 143 views

Good morning,


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

icon

Best answer by Nic-Automox 21 October 2019, 17:37

View original

3 replies

Userlevel 7

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?

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

Userlevel 5
Badge

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.

Reply