From a8e7b563d1f8de2d9c50e562ee361b0d9e5aa2a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Mare=C5=A1?= Date: Wed, 19 Aug 2026 21:06:12 +0200 Subject: [PATCH] Document systemd dependencies on network-online.target --- docs/Running CMS.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/Running CMS.rst b/docs/Running CMS.rst index 9138ca4b53..9129203570 100644 --- a/docs/Running CMS.rst +++ b/docs/Running CMS.rst @@ -135,6 +135,16 @@ services running when the user is not logged in. (Beware that the lingering user instance of systemd does not automatically gain new privileges when you add the to a new group. You might need to ``sudo loginctl terminate-user ...``.) +CMS depends on configured networking, but unfortunately, ``systemd`` does not allow +dependencies between user services and system services. A possible work-around is +to make system-wide ``user@UID.service`` (where ``UID`` is the user ID of the user +running CMS) depend on ``network-online.target`` by adding a drop-in configuration file +with:: + + [Unit] + After=network-online.target + Wants=network-online.target + Recommended setup =================