From 5b43c25fa2bb1a151fb76ed63803c0bc0c8be0d3 Mon Sep 17 00:00:00 2001 From: Brandon Nielsen Date: Jan 18 2021 01:14:46 +0000 Subject: Fix "systemd-conditionals" and systemd "Guidelines" links --- diff --git a/guidelines/modules/ROOT/pages/DefaultServices.adoc b/guidelines/modules/ROOT/pages/DefaultServices.adoc index 3098779..c35a4d1 100644 --- a/guidelines/modules/ROOT/pages/DefaultServices.adoc +++ b/guidelines/modules/ROOT/pages/DefaultServices.adoc @@ -38,7 +38,7 @@ D-BUS services and hardware-activated services generally meet this requirement. Some hardware requires some additional service to be started in order to be useful. This may come in the form of a non-persistent setup process or in the form of a continuously-running service. If the service can be hardware activated to only start when the relevant hardware is present and do nothing when not present, and otherwise it meets the above requirements, then it SHOULD be enabled by default upon package installation. -If the service cannot be hardware activated, but it is possible to configure it such that it will exit without error and without marking the service as "failed" according to systemd, then it SHOULD be enabled by default upon package installation. This clean exit may be accomplished through [https://www.freedesktop.org/software/systemd/man/systemd.unit.html#ConditionArchitecture=| systemd conditionals], by having the service (or a wrapper script) perform hardware detection and exit without indicating an error, or via other similar means. +If the service cannot be hardware activated, but it is possible to configure it such that it will exit without error and without marking the service as "failed" according to systemd, then it SHOULD be enabled by default upon package installation. This clean exit may be accomplished through https://www.freedesktop.org/software/systemd/man/systemd.unit.html#ConditionArchitecture=[systemd conditionals], by having the service (or a wrapper script) perform hardware detection and exit without indicating an error, or via other similar means. == Approved Exceptions @@ -58,7 +58,7 @@ Example: == How to enable a service by default -Unit files must correspond to the Fedora Packaging Packaging:ScriptletSnippets#Systemd[Guidelines]. Services are enabled or disabled by default through http://www.freedesktop.org/software/systemd/man/systemd.preset.html[systemd preset files]. Preset files can be overridden by a local administrator, but a set of defaults are provided by Fedora. +Unit files must correspond to the Fedora Packaging xref:Scriptlets.adoc#_systemd[Guidelines]. Services are enabled or disabled by default through http://www.freedesktop.org/software/systemd/man/systemd.preset.html[systemd preset files]. Preset files can be overridden by a local administrator, but a set of defaults are provided by Fedora. If the service should be enabled by default, it must be added to one of the distribution presets files (see above).