Linux Services – How to Change Startup/Boot Order

bootcentoslinuxredhatservice

As the question is clear from the title, how do I change Linux services startup/boot order?

Best Answer

You can change the order by renaming the symlinks under /etc/rcX.d/ where x will be your run level.

You'll see a bunch of files starting with Sxx or Kxx. S links are traced during startup while the K ones are parsed for shutdown. The xx here represents the order.

But this order is set for a reason, so be careful while changing them.for example. ntpd should start only after the networking subsystem is initialized.