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.

  • Packages in systemd

    You might need to tweak your Debian or Ubuntu packages to get them to work with systemd.

  • Working the System

    Every major aspect of a system that runs in userland can be controlled by systemctl, a command that acts on systemd's 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.

comments powered by Disqus
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters

Support Our Work

Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.

Learn More

News