1 import ./make-test-python.nix (
4 name = "systemd-user-linger";
27 machine.wait_for_file("/var/lib/systemd/linger/alice")
28 machine.succeed("systemctl status user-1000.slice")
30 machine.fail("test -e /var/lib/systemd/linger/bob")
31 machine.fail("systemctl status user-1001.slice")
33 with subtest("missing users have linger purged"):
34 machine.succeed("touch /var/lib/systemd/linger/missing")
35 machine.systemctl("restart linger-users")
36 machine.succeed("test ! -e /var/lib/systemd/linger/missing")