O'Reilly logo

Embedded Linux Projects Using Yocto Project Cookbook by Alex González

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required