Understanding systemd units

Conclusions

Creating systemd units yourself is not rocket science. What may seem a little confused at first glance is actually a well organized combination of interacting components. Compared to the init files in SysVinit, system units are easier to create and maintain. In particular, unlike with some other init systems, you do not need to be familiar with a scripting language to create unit files, since these are simple INI files.

Plenty of documentation is available for Systemd in general and system units in particular. The DigitalOcean [1] website provides a good overview of the relationships between units. Other reliable points of contact on Systemd and its components are Freedesktop [2] and Systemd-creator Lennart Poettering's blog site "Pid Eins" [3].

TIP

When determining the optimal start time for a service, take a look at the output of systemd-analyze blame, which breaks down the boot process.

The Author

Ferdinand Thommes lives and works as a Linux developer, freelance writer, and tour guide in Berlin.

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy Linux Magazine

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • Systemd GUIs

    Graphical frontends make it easier to take full advantage of the Systemd process manager. We examine some leading tools for the KDE environment.

  • Systemd Timers

    Systemd can start timers that automatically perform tasks at specified times. The configuration files are known as timer units.

  • Command Line: Systemd

    Wondering what all the fuss is about systemd? We explain the basic concepts and capabilities of the new system management suite – coming soon to a distro near you.

  • Professor Knopper's Lab – Removing systemd

    The systemd service manager has been widely adopted by many Linux distros, so why would you want to remove it? The professor reveals why and how.

  • Systemd Graphical Tools

    Systemd has won the race, as indicated by the several tools that already offer a service just a mouse click away. We look at six of these tools.

comments powered by Disqus

Direct Download

Read full article as PDF:

Price $2.95

News