GithubHelp home page GithubHelp logo

exploring-systemd-start-order's Introduction

Exploring SystemD Replacement Start Order

Repo aiming to explore the various start order options in SystemD and how they operate with SystemD replacement.

Table of contents

Prerequisite

  • Docker
  • CentOS7 with SystemD (Run ./build-centos7-systemd.sh)

Running tests

You can run a scenario by running the following command.

./test-scenario.sh {SCENARIO_PATH} eg ./test-scenario.sh scenarios/1-oneshot-a-before-b

The test scenario process is very manual as it stands. It expects you to tell it when you think the start-up process is complete and to move onto the next test step.

This command will;

  • Run the scenario four times;
    1. Run with pure SystemD with service A exit 0
    2. Run with replacement SystemD with service A exit 0
    3. Run with pure SystemD with service A exit 1
    4. Run with replacement SystemD with service A exit 1
  • Expect you to hit CMD+C when you deemed each run "finished".
  • After hitting CMD+C it'll take a screenshot, request the systemctl status of each service and screenshot that.
  • It'll then move onto the next scenario step.

Results

The screenshot results of each scenario can be found in the ./scenarios/**/results directory.

Summary table

Scenario # Description SystemD Service A exit code Expected B status Actual B status Pass
1 Loose dependency. A sets Before=b Pure 0 Running after start-up Running after start-up
Replacement 0 Running after start-up Running after start-up
Pure 1 Running after start-up Running after start-up
Replacement 1 Running after start-up Running after start-up
2 A sets Before=b. B sets BindsTo=a Pure 0 Running after start-up Running after start-up
Replacement 0 Running after start-up Running after start-up
Pure 1 Not running Not running
Replacement 1 Not running Running after start-up
3 Same as above but with a wait
4 A sets Before=b. B sets Requires=a Pure 0 Running after start-up Running after start-up
Replacement 0 Running after start-up Running after start-up
Pure 1 Not running Not running
Replacement 1 Not running Running after start-up
5 B sets After&Requires=a Pure 0 Running after start-up Running after start-up
Replacement 0 Running after start-up Running after start-up
Pure 1 Not running Not running
Replacement 1 Not running Running after start-up
6 B sets After&Requires&PartOf=a Pure 0 Running after start-up Running after start-up
Replacement 0 Running after start-up Running after start-up
Pure 1 Not running Not running
Replacement 1 Not running Running after start-up

Reading

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.