From: Zbigniew Jędrzejewski-Szmek Date: Thu, 23 Nov 2023 12:18:54 +0000 (+0100) Subject: man: drop recommendation to use absolute paths in ExecStart*= X-Git-Tag: v255-rc4~64^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F30163%2Fhead;p=thirdparty%2Fsystemd.git man: drop recommendation to use absolute paths in ExecStart*= The only reason to recommend this would be if people had multiple commands with the same name in the search path. This probably was never the best idea, and it happens rarely anyway. Since the patch that dropped requirement for full paths was introduced, we have dropped support for unmerged-usr and we're planning to drop support for split-bin at some point too. Many people effectively have just one directory in the search path, so there is even less reason to use an absolute path. So let's recommend just using the command name, which makes the unit file shorter and nicer to read. --- diff --git a/man/systemd.service.xml b/man/systemd.service.xml index 123f1db30de..b43ec14c375 100644 --- a/man/systemd.service.xml +++ b/man/systemd.service.xml @@ -1421,9 +1421,9 @@ systems using split /usr/bin/ and /bin/ directories, and their sbin/ counterparts on systems using split bin/ and sbin/. It is thus safe to use just the executable name in case of executables - located in any of the "standard" directories, and an absolute path must be used in other cases. Using an - absolute path is recommended to avoid ambiguity. Hint: this search path may be queried using - systemd-path search-binaries-default. + located in any of the "standard" directories, and an absolute path must be used in other cases. + Hint: this search path may be queried using systemd-path search-binaries-default. + The command line accepts % specifiers as described in systemd.unit5.