×
1 Choose EITC/EITCA Certificates
2 Learn and take online exams
3 Get your IT skills certified

Confirm your IT skills and competencies under the European IT Certification framework from anywhere in the world fully online.

EITCA Academy

Digital skills attestation standard by the European IT Certification Institute aiming to support Digital Society development

LOG IN TO YOUR ACCOUNT

CREATE AN ACCOUNT FORGOT YOUR PASSWORD?

FORGOT YOUR PASSWORD?

AAH, WAIT, I REMEMBER NOW!

CREATE AN ACCOUNT

ALREADY HAVE AN ACCOUNT?
EUROPEAN INFORMATION TECHNOLOGIES CERTIFICATION ACADEMY - ATTESTING YOUR PROFESSIONAL DIGITAL SKILLS
  • SIGN UP
  • LOGIN
  • INFO

EITCA Academy

EITCA Academy

The European Information Technologies Certification Institute - EITCI ASBL

Certification Provider

EITCI Institute ASBL

Brussels, European Union

Governing European IT Certification (EITC) framework in support of the IT professionalism and Digital Society

  • CERTIFICATES
    • EITCA ACADEMIES
      • EITCA ACADEMIES CATALOGUE<
      • EITCA/CG COMPUTER GRAPHICS
      • EITCA/IS INFORMATION SECURITY
      • EITCA/BI BUSINESS INFORMATION
      • EITCA/KC KEY COMPETENCIES
      • EITCA/EG E-GOVERNMENT
      • EITCA/WD WEB DEVELOPMENT
      • EITCA/AI ARTIFICIAL INTELLIGENCE
    • EITC CERTIFICATES
      • EITC CERTIFICATES CATALOGUE<
      • COMPUTER GRAPHICS CERTIFICATES
      • WEB DESIGN CERTIFICATES
      • 3D DESIGN CERTIFICATES
      • OFFICE IT CERTIFICATES
      • BITCOIN BLOCKCHAIN CERTIFICATE
      • WORDPRESS CERTIFICATE
      • CLOUD PLATFORM CERTIFICATENEW
    • EITC CERTIFICATES
      • INTERNET CERTIFICATES
      • CRYPTOGRAPHY CERTIFICATES
      • BUSINESS IT CERTIFICATES
      • TELEWORK CERTIFICATES
      • PROGRAMMING CERTIFICATES
      • DIGITAL PORTRAIT CERTIFICATE
      • WEB DEVELOPMENT CERTIFICATES
      • DEEP LEARNING CERTIFICATESNEW
    • CERTIFICATES FOR
      • EU PUBLIC ADMINISTRATION
      • TEACHERS AND EDUCATORS
      • IT SECURITY PROFESSIONALS
      • GRAPHICS DESIGNERS & ARTISTS
      • BUSINESSMEN AND MANAGERS
      • BLOCKCHAIN DEVELOPERS
      • WEB DEVELOPERS
      • CLOUD AI EXPERTSNEW
  • FEATURED
  • SUBSIDY
  • HOW IT WORKS
  •   IT ID
  • ABOUT
  • CONTACT
  • MY ORDER
    Your current order is empty.
EITCIINSTITUTE
CERTIFIED

What is the difference between weak dependencies and explicit ordering in systemd?

by EITCA Academy / Saturday, 05 August 2023 / Published in Cybersecurity, EITC/IS/LSA Linux System Administration, Working with systemd on Linux, Dependencies and ordering, Examination review

In the realm of Linux system administration, particularly when working with systemd, understanding dependencies and ordering is important for managing services and ensuring the smooth operation of a system. Two important concepts related to this are weak dependencies and explicit ordering. While both play a role in defining the sequence of service activation and execution, they differ in their nature and impact on the system.

Weak dependencies, also known as Wants dependencies, allow services to express a preference for the availability of another service, without mandating its presence. This means that if a weak dependency is not met, it does not prevent the service from starting. Weak dependencies are denoted using the "Wants" keyword in systemd unit files.

For example, let's consider a web server that relies on a database service. The web server unit file may include a weak dependency on the database service using the "Wants" keyword. This indicates that the web server prefers the database service to be available, but it can still function without it. If the database service is not running, the web server will start, but it may encounter errors or reduced functionality due to the missing dependency.

On the other hand, explicit ordering, also known as Requires dependencies, enforces a strict requirement for another service to be present and active before the dependent service can start. If the required service is not available, the dependent service will fail to start. Explicit ordering is denoted using the "Requires" keyword in systemd unit files.

Continuing with the previous example, if the web server has an explicit ordering dependency on the database service using the "Requires" keyword, it will not start unless the database service is already running. In this case, the web server is tightly coupled with the database service, and its operation depends on the availability of the database.

It is important to note that explicit ordering is a stronger form of dependency than weak dependencies. While weak dependencies express preferences and allow services to function even if the dependency is not met, explicit ordering enforces strict requirements and ensures that the dependent service cannot start without the presence of the required service.

To summarize, weak dependencies and explicit ordering are two mechanisms in systemd that govern the sequence of service activation and execution. Weak dependencies express preferences for the availability of other services but do not prevent a service from starting if the dependency is not met. On the other hand, explicit ordering enforces strict requirements and ensures that a service cannot start without the presence of the required service. Understanding and correctly defining these dependencies is important for managing services and maintaining the stability and reliability of a Linux system.

Other recent questions and answers regarding Dependencies and ordering:

  • How does the "conflicts" directive in systemd prevent two units from being active simultaneously?
  • What is the purpose of the "requisite" directive in systemd and how is it different from "required by"?
  • Why is it recommended to manage dependencies on units that you are creating or managing yourself, rather than editing system units?
  • How does the "before" directive in systemd specify the execution order of units?

More questions and answers:

  • Field: Cybersecurity
  • Programme: EITC/IS/LSA Linux System Administration (go to the certification programme)
  • Lesson: Working with systemd on Linux (go to related lesson)
  • Topic: Dependencies and ordering (go to related topic)
  • Examination review
Tagged under: Cybersecurity, Dependencies, Explicit Ordering, Linux, Systemd, Weak Dependencies
Home » Cybersecurity / Dependencies and ordering / EITC/IS/LSA Linux System Administration / Examination review / Working with systemd on Linux » What is the difference between weak dependencies and explicit ordering in systemd?

Certification Center

USER MENU

  • My Account

CERTIFICATE CATEGORY

  • EITC Certification (105)
  • EITCA Certification (9)

What are you looking for?

  • Introduction
  • How it works?
  • EITCA Academies
  • EITCI DSJC Subsidy
  • Full EITC catalogue
  • Your order
  • Featured
  •   IT ID
  • EITCA reviews (Medium publ.)
  • About
  • Contact

EITCA Academy is a part of the European IT Certification framework

The European IT Certification framework has been established in 2008 as a Europe based and vendor independent standard in widely accessible online certification of digital skills and competencies in many areas of professional digital specializations. The EITC framework is governed by the European IT Certification Institute (EITCI), a non-profit certification authority supporting information society growth and bridging the digital skills gap in the EU.

Eligibility for EITCA Academy 80% EITCI DSJC Subsidy support

80% of EITCA Academy fees subsidized in enrolment by

    EITCA Academy Secretary Office

    European IT Certification Institute ASBL
    Brussels, Belgium, European Union

    EITC / EITCA Certification Framework Operator
    Governing European IT Certification Standard
    Access contact form or call +32 25887351

    Follow EITCI on X
    Visit EITCA Academy on Facebook
    Engage with EITCA Academy on LinkedIn
    Check out EITCI and EITCA videos on YouTube

    Funded by the European Union

    Funded by the European Regional Development Fund (ERDF) and the European Social Fund (ESF) in series of projects since 2007, currently governed by the European IT Certification Institute (EITCI) since 2008

    Information Security Policy | DSRRM and GDPR Policy | Data Protection Policy | Record of Processing Activities | HSE Policy | Anti-Corruption Policy | Modern Slavery Policy

    Automatically translate to your language

    Terms and Conditions | Privacy Policy
    EITCA Academy
    • EITCA Academy on social media
    EITCA Academy


    © 2008-2025  European IT Certification Institute
    Brussels, Belgium, European Union

    TOP
    Chat with Support
    Chat with Support
    Questions, doubts, issues? We are here to help you!
    End chat
    Connecting...
    Do you have any questions?
    Do you have any questions?
    :
    :
    :
    Send
    Do you have any questions?
    :
    :
    Start Chat
    The chat session has ended. Thank you!
    Please rate the support you've received.
    Good Bad