]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - test/units/testsuite-82.sh
core: add IgnoreOnSoftReboot= unit option
[thirdparty/systemd.git] / test / units / testsuite-82.sh
index a1c82a9fc9d0f87f101886e4eec5220ac0d1c9e2..a425d21c96ae8d589741a59aadc69f6036ed202c 100755 (executable)
@@ -136,11 +136,10 @@ rm "$T"
 exec sleep infinity
 EOF
     chmod +x "$T"
-    # This sets DefaultDependencies=no so that it remains running until the
-    # very end, and IgnoreOnIsolate=yes so that it isn't stopped via the
-    # "testsuite.target" isolation we do on next boot
-    systemd-run -p Type=notify -p DefaultDependencies=no -p IgnoreOnIsolate=yes --unit=testsuite-82-survive.service "$T"
-    systemd-run -p Type=exec -p DefaultDependencies=no -p IgnoreOnIsolate=yes --unit=testsuite-82-nosurvive.service sleep infinity
+    # Configure this transient unit to survive the soft reboot - it will not conflict with shutdown.target
+    # and it will be ignored on the isolate that happens in the next boot.
+    systemd-run -p Type=notify -p IgnoreOnSoftReboot=yes --unit=testsuite-82-survive.service "$T"
+    systemd-run -p Type=exec -p IgnoreOnSoftReboot=yes --unit=testsuite-82-nosurvive.service sleep infinity
 
     # Now issue the soft reboot. We should be right back soon.
     touch /run/testsuite82.touch