Using systemctl to Configure systemd

15 minutes
  • 3 Learning Objectives

About this Hands-on Lab

Knowing how to use `systemctl` is one of the most important and foundational skills to have when managing systemd-based systems. The `systemctl` utility is used for so many tasks and contains such a large amount of subcommands that it can be slightly intimidating at first for those familiar with individual commands for most management tasks.

In this lab, we’ll get you used to using `systemctl` to view systemd’s environment, settings, view status on services, show and set parameters that affect service function, and understand what happens when you set settings, both from a `systemd` daemon perspective, as well as drop-in directories and additional configuration add-ins.

You’ll come out of this lab feeling more confident with `systemctl` than ever and ready to start managing your systemd-based systems right away!

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Investigate the systemd Environment and Service Status
  1. Show the systemd environment.
  2. View service status.
  3. Become familiar with the systemd directory contents and query and display service parameters.
Install a systemd-Managed Service and Change Its Parameters
  1. Install CUPS
  2. View its status and start and stop the service
  3. Change a service parameter and find out what changed as a result
Reverse a Parameter Change to a Service
  1. You’ll stop the service, remove the setting, change directory, and override files, reload systemd’s daemon and restart the service, and confirm it is back to factory settings.

Additional Resources

You're a seasoned Linux sysadmin from the SysV world who is getting used to systemd and its tools and need to get some familiarity with systemctl.

You want to start out with viewing the systemd environment, look at the status of services, determine what's in the various systemd unit directories, and dive down into the parameters of a few services. After that, you want to change a parameter and see what happens to that service and its associated directories when you do.

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?