How to change Linux services startup/boot order?

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.

Leave a Comment