anchor.diff:          assert_lacks(out, "NOT restarting the following changed units:")
           assert_lacks(out, "reloading the following units:")
           assert_lacks(out, "restarting the following units:")
  -        assert_contains(out, "\nstarting the following units: no-restart-service.service, simple-reload-service.service, simple-restart-service.service, simple-service.service\n")
  +        assert_contains(out, "\nstarting the following units: no-restart-service.service, reload-triggers-and-restart-by-as.service, simple-reload-service.service, simple-restart-service.service, simple-service.service\n")
           assert_lacks(out, "as well:")
           # Switch to the same system where the example services get restarted
  -        # by the activation script
  +        # and reloaded by the activation script
           out = switch_to_specialisation("${machine}", "restart-and-reload-by-activation-script")
           assert_lacks(out, "stopping the following units:")
           assert_lacks(out, "NOT restarting the following changed units:")
  -        assert_contains(out, "reloading the following units: simple-reload-service.service\n")
  -        assert_contains(out, "restarting the following units: simple-restart-service.service, simple-service.service\n")
  +        assert_contains(out, "reloading the following units: reload-triggers-and-restart.service, reload-triggers.service, simple-reload-service.service\n")
  +        assert_contains(out, "restarting the following units: reload-triggers-and-restart-by-as.service, simple-restart-service.service, simple-service.service\n")
  +        assert_lacks(out, "\nstarting the following units:")
  +        assert_lacks(out, "as well:")
  +        # Switch to the same system and see if the service gets restarted when it's modified
  +        # while the fact that it's supposed to be reloaded by the activation script is ignored.
  +        out = switch_to_specialisation("${machine}", "restart-and-reload-by-activation-script-modified")
  +        assert_lacks(out, "stopping the following units:")
  +        assert_lacks(out, "NOT restarting the following changed units:")
  +        assert_contains(out, "reloading the following units: reload-triggers.service, simple-reload-service.service\n")
  +        assert_contains(out, "restarting the following units: reload-triggers-and-restart-by-as.service, reload-triggers-and-restart.service, simple-restart-service.service, simple-service.service\n")
           assert_lacks(out, "\nstarting the following units:")
           assert_lacks(out, "as well:")
           # The same, but in dry mode
           out = switch_to_specialisation("${machine}", "restart-and-reload-by-activation-script", action="dry-activate")
           assert_lacks(out, "would stop the following units:")
           assert_lacks(out, "would NOT stop the following changed units:")
  -        assert_contains(out, "would reload the following units: simple-reload-service.service\n")
  -        assert_contains(out, "would restart the following units: simple-restart-service.service, simple-service.service\n")
  +        assert_contains(out, "would reload the following units: reload-triggers.service, simple-reload-service.service\n")
  +        assert_contains(out, "would restart the following units: reload-triggers-and-restart-by-as.service, reload-triggers-and-restart.service, simple-restart-service.service, simple-service.service\n")
           assert_lacks(out, "\nwould start the following units:")
           assert_lacks(out, "as well:")
   
  
positive.code:             text = ''
                if [ "$NIXOS_ACTION" = dry-activate ]; then
                  f=/run/nixos/dry-activation-restart-list
                else
                  f=/run/nixos/activation-restart-list
                fi
                cat <<EOF >> "$f"
                simple-service.service
                simple-restart-service.service
                simple-reload-service.service
                no-restart-service.service
                EOF
              '';
            };
          };
  
          mount.configuration = {
  
negative.code:             raise Exception(f"Unexpected string '{needle}' was found")
  
  
      machine.wait_for_unit("multi-user.target")
  
      machine.succeed(
          "${stderrRunner} ${originalSystem}/bin/switch-to-configuration test"
      )
  