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:
- 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 ...
Get Red Hat Enterprise Linux Server Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.