Pramod
Pramod

Reputation: 848

Sequence startup of list of services in RHEL 7 where service startup order needs to be maintained

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

Answers (1)

Robert Kratky
Robert Kratky

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

Related Questions