Reputation: 848
I have a list of services which needs to be started but they are startups is interdependent. Meaning, only after first service is up, second service startup should occur. In short, order needs to be maintained.
Is there a way in RHEL 7 to achieve this?
Upvotes: 0
Views: 6441
Reputation: 582
Use systemd units and their Wants
and After
directives. See Configure ordering of systemd services at Unix & Linux for details.
See also Creating and Modifying Systemd Unit Files for an explanation of the syntax and other general information.
Upvotes: 2