June 2017
Intermediate to advanced
478 pages
13h 14m
English
A target is another type of unit, which groups services (or other types of unit). It is a type of unit that only has dependencies. Targets have names ending in .target, for example, multi-user.target. A target is a desired state, which performs the same role as System V init runlevels. For example, this is the complete unit for muti-user.target:
[Unit]Description=Multi-User SystemDocumentation=man:systemd.special(7)Requires=basic.targetConflicts=rescue.service rescue.targetAfter=basic.target rescue.service rescue.targetAllowIsolate=yes
This says that the basic target must be started before the multi-user target. It also says that since it conflicts with the rescue target, starting the rescue target will cause the multi-user target ...
Read now
Unlock full access