SYSTEMD​.TARGET - Online Linux Manual PageSection : 5
Updated :
Source : systemd 253
Note : systemd.target

NAMEsystemd.target − Target unit configuration

SYNOPSIStarget​.target

DESCRIPTIONA unit configuration file whose name ends in "​.target" encodes information about a target unit of systemd, which is used for grouping units and as well−known synchronization points during start−up​. This unit type has no specific options​. See systemd.unit(5) for the common options of all unit configuration files​. The common configuration items are configured in the generic [Unit] and [Install] sections​. A separate [Target] section does not exist, since no target−specific options may be configured​. Target units do not offer any additional functionality on top of the generic functionality provided by units​. They exist merely to group units via dependencies (useful as boot targets), and to establish standardized names for synchronization points used in dependencies between units​. Among other things, target units are a more flexible replacement for SysV runlevels in the classic SysV init system​. (And for compatibility reasons special target units such as runlevel3​.target exist which are used by the SysV runlevel compatibility code in systemd​. See systemd.special(7) for details)​.

AUTOMATIC DEPENDENCIES

Implicit DependenciesThere are no implicit dependencies for target units​.

Default DependenciesThe following dependencies are added unless DefaultDependencies=no is set: •  Target units will automatically complement all configured dependencies of type Wants= or Requires= with dependencies of type After= unless DefaultDependencies=no is set in the specified units​. Note that Wants= or Requires= must be defined in the target unit itself — if you for example define Wants=some​.target in some​.service, the automatic ordering will not be added​. •  Target units automatically gain Conflicts= and Before= dependencies against shutdown​.target​.

OPTIONSTarget unit files may include [Unit] and [Install] sections, which are described in systemd.unit(5)​. No options specific to this file type are supported​.

EXAMPLEExample ​1. ​Simple standalone target # emergency−net​.target [Unit] Description=Emergency Mode with Networking Requires=emergency​.target systemd−networkd​.service After=emergency​.target systemd−networkd​.service AllowIsolate=yesWhen adding dependencies to other units, it's important to check if they set DefaultDependencies=​. Service units, unless they set DefaultDependencies=no, automatically get a dependency on sysinit​.target​. In this case, both emergency​.target and systemd−networkd​.service have DefaultDependencies=no, so they are suitable for use in this target, and do not pull in sysinit​.target​. You can now switch into this emergency mode by running systemctl isolate emergency−net​.target or by passing the option systemd​.unit=emergency−net​.target on the kernel command line​. Other units can have WantedBy=emergency−net​.target in the [Install] section​. After they are enabled using systemctl enable, they will be started before emergency−net​.target is started​. It is also possible to add arbitrary units as dependencies of emergency​.target without modifying them by using systemctl add−wants​.

SEE ALSOsystemd(1), systemctl(1), systemd.unit(5), systemd.special(7), systemd.directives(7)
0
Johanes Gumabo
Data Size   :   11,735 byte
man-systemd.target.5Build   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   2 / 184,133
Visitor ID   :     :  
Visitor IP   :   3.145.81.47   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.