Skip to main content
Solved

Restarting Services in an Order

  • October 21, 2019
  • 3 replies
  • 174 views

Good morning,


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

Best answer by Nic-Automox

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?

View original
How helpful was this post to you?

3 replies

Nic-Automox
  • Former Automox Employee
  • 832 replies
  • Answer
  • October 21, 2019

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?


  • Author
  • Channel Partner
  • 4 replies
  • October 21, 2019

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


AdamW-Automox
Forum|alt.badge.img
  • Automox Employee
  • 48 replies
  • October 21, 2019

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings