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 static 58 unit files listed. ~]#
This list shows all target units available followed by information...