My Oracle Support Banner

Oracle Linux: Configuring systemd Service/Unit Inter-dependency by Example (Doc ID 2884392.1)

Last updated on JULY 22, 2022

Applies to:

Linux OS - Version Oracle Linux 7.0 and later
Linux ARM 64-bit
Linux x86-64


Oracle Linux 7 (OL7) saw the introduction of systemd - a new system and service manager used to boot and initialise Linux systems.
systemd replaces initscripts of previous System V (SysV) / Linux Standard Base (LSB) based releases.
With a focus on reducing system boot time, systemd starts as many system services (units) as possible in parallel, rather than in the strict numeric sequence required by initscripts.
Users who create custom units, such as to automatically start applications upon system boot, often experience issues with unit timing and/or dependency with other units.
This document serves to describe how to configure dependency between systemd service/units.


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document
 1. systemd Basics
 2. Configuring systemd service/unit inter-dependency
 2.1 Scenario 1: Default systemd configuration - no custom units
 2.2 Scenario 2: Independent custom application unit and NFS mount
 2.3 Scenario 3: Custom application unit with dependency upon NFS mount
 3. Conclusion

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.