From 3f0e7fd4fd1d20e3f4be18f485c76d25ce10f41b Mon Sep 17 00:00:00 2001 From: ZHANG Yuntian Date: Fri, 5 Jul 2024 17:04:44 +0800 Subject: [PATCH] man: fix typo in the alias symlink name Symlink created by Alias will use the value as the file name. --- man/systemd.unit.xml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/man/systemd.unit.xml b/man/systemd.unit.xml index 919e641c5c0..bdf9e4e89ee 100644 --- a/man/systemd.unit.xml +++ b/man/systemd.unit.xml @@ -173,13 +173,13 @@ section. When the unit is enabled, symlinks will be created for those names, and removed when the unit is disabled. For example, reboot.target specifies Alias=ctrl-alt-del.target, so when enabled, the symlink - /etc/systemd/system/ctrl-alt-del.service pointing to the + /etc/systemd/system/ctrl-alt-del.target pointing to the reboot.target file will be created, and when CtrlAltDel is invoked, - systemd will look for the ctrl-alt-del.service and execute - reboot.service. systemd does not look at the [Install] section at - all during normal operation, so any directives in that section only have an effect through the symlinks - created during enablement. + systemd will look for ctrl-alt-del.target, follow the symlink to + reboot.target, and execute reboot.service as part of that target. + systemd does not look at the [Install] section at all during normal operation, so any + directives in that section only have an effect through the symlinks created during enablement. Along with a unit file foo.service, the directory foo.service.wants/ may exist. All unit files symlinked from such a directory are -- 2.47.3