Book Image

Embedded Linux Projects Using Yocto Project Cookbook

By : Alex Gonzalez
Book Image

Embedded Linux Projects Using Yocto Project Cookbook

By: Alex Gonzalez

Overview of this book

Table of Contents (13 chapters)
Embedded Linux Projects Using Yocto Project Cookbook
Credits
Foreword
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Using the systemd initialization manager


As an alternative to sysvinit, you can configure your project to use systemd as an initialization manager, although systemd packs many more features.

Getting ready

The systemd initialization manager is replacing sysvinit and other initialization managers in most Linux distributions. It is based on the concepts of units, an abstraction of all elements that are relevant for system startup and maintenance, and targets, which group units and can be viewed as a runlevel equivalent. Some of the units systemd defines are:

  • Services

  • Sockets

  • Devices

  • Mount points

  • Snapshots

  • Timers

  • Paths

The default targets and their runlevel equivalents are defined in the following table:

Sysvinit

Runlevel

Systemd target

Notes

0

runlevel0.target

poweroff.target

Halt the system.

1, s, single

runlevel1.target

rescue.target

Single user mode.

2, 4

runlevel2.target, runlevel4.target

multi-user.target

User-defined/site-specific runlevels. By default, identical to 3.

3

runlevel3...