Skip to Content
Red Hat Enterprise Linux Server Cookbook
book

Red Hat Enterprise Linux Server Cookbook

by William Leemans
December 2015
Intermediate to advanced
250 pages
4h 41m
English
Packt Publishing
Content preview from Red Hat Enterprise Linux Server Cookbook

The systemd service and setting runlevels

The systemd service doesn't use runlevels as SysV or Upstart do. The alternatives for systemd are called targets. Their purpose is to group a set of systemd units (not only services, but also sockets, devices, and so on) through a chain of dependencies.

How to do it…

Managing targets with systemd is pretty simple, as shown through the following steps:

  1. List all target units, as follows:
    ~]# systemctl list-unit-files --type target
    UNIT FILE                 STATE   
    anaconda.target           static  
    basic.target              static  
    bluetooth.target          static  
    cryptsetup.target         static  
    ctrl-alt-del.target       disabled
    default.target            enabled
    ...
    
    sysinit.target            static  
    system-update.target      static  
    time-sync.target          static  
    timers.target             static  
    umount.target ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

CentOS 7 Server Deployment Cookbook

CentOS 7 Server Deployment Cookbook

Timothy Boronczyk

Publisher Resources

ISBN: 9781784392017