]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
TEST-03-JOBS: test indirect PropagatesStopTo= 28262/head
authorMike Yuan <me@yhndnzj.com>
Wed, 5 Jul 2023 18:40:01 +0000 (02:40 +0800)
committerMike Yuan <me@yhndnzj.com>
Wed, 5 Jul 2023 21:12:04 +0000 (05:12 +0800)
test/testsuite-03.units/propagatestopto-indirect.target [new file with mode: 0644]
test/units/testsuite-03.sh

diff --git a/test/testsuite-03.units/propagatestopto-indirect.target b/test/testsuite-03.units/propagatestopto-indirect.target
new file mode 100644 (file)
index 0000000..e8229a7
--- /dev/null
@@ -0,0 +1,3 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+[Unit]
+PropagatesStopTo=propagatestopto-and-pullin.target
index 22c500debf019555586fff06cd1773b9a92e9ada..aa1d92a6919df41708ea552f396dbbf7e473118e 100755 (executable)
@@ -145,4 +145,12 @@ systemctl --quiet is-active sleep-infinity-simple.service
 systemctl restart propagatestopto-only.target
 assert_rc 3 systemctl --quiet is-active sleep-infinity-simple.service
 
+systemctl start propagatesstopto-indirect.target propagatestopto-and-pullin.target
+systemctl --quiet is-active propagatestopto-indirect.target
+systemctl --quiet is-active propagatestopto-and-pullin.target
+
+systemctl restart propagatestopto-indirect.target
+assert_rc 3 systemctl --quiet is-active propagatestopto-and-pullin.target
+assert_rc 3 systemctl --quiet is-active sleep-infinity-simple.service
+
 touch /testok