Skip to content

Commit a8e7b56

Browse files
committed
Document systemd dependencies on network-online.target
1 parent dfa0b66 commit a8e7b56

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

‎docs/Running CMS.rst‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,16 @@ services running when the user is not logged in. (Beware that the lingering user
135135
instance of systemd does not automatically gain new privileges when you add the
136136
to a new group. You might need to ``sudo loginctl terminate-user ...``.)
137137

138+
CMS depends on configured networking, but unfortunately, ``systemd`` does not allow
139+
dependencies between user services and system services. A possible work-around is
140+
to make system-wide ``user@UID.service`` (where ``UID`` is the user ID of the user
141+
running CMS) depend on ``network-online.target`` by adding a drop-in configuration file
142+
with::
143+
144+
[Unit]
145+
After=network-online.target
146+
Wants=network-online.target
147+
138148

139149
Recommended setup
140150
=================

0 commit comments

Comments
 (0)