1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-26 03:22:00 +03:00
systemd/test/testsuite-23.units/testsuite-23-joins-namespace-of-9.service
Yu Watanabe 83123a4498 core/unit: search shared namespace in transitive relation of JoinsNamespaceOf=
Previously, dependency chain of JoinsNamespaceOf= did not work, e.g.
- a.service has JoinsNamespaceOf=b.service
- b.service has JoinsNamespaceOf=c.service
if, first c.service, next a.service, finally b.service is started,
then a.service is not joined to the namespace of c.service. And, as
mentioned in the document, the namespace used by b.service is not
deterministic.

This makes when searching exsiting namespace to be joined, all units in
the transitive dependency of JoinsNamespaceOf= are checked.
2023-05-26 15:23:57 +09:00

12 lines
284 B
Desktop File

# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
JoinsNamespaceOf=testsuite-23-joins-namespace-of-8.service
[Service]
Type=oneshot
MountAPIVFS=yes
PrivateTmp=yes
ExecStart=test -e /tmp/shared-private-file-x
ExecStart=test -e /tmp/shared-private-file-y
ExecStart=test -e /tmp/hoge