default systemd service OOM killer policy leads to gnome-shell being stopped
On Fedora 31, if the OOM killer takes out Firefox, the gnome-shell immediately dies:
> Dez 02 20:18:12 kernel: Out of memory: Killed process 2508 (firefox) total-vm:5579204kB, anon-rss:1243628kB, file-rss:0kB, shmem-rss:319592kB
> Dez 02 20:18:12 systemd[1681]: gnome-shell-wayland.service: A process of this unit has been killed by the OOM killer.
...
> Dez 02 20:18:13 systemd[1681]: gnome-shell-wayland.service: Failed with result 'oom-kill'.
> Dez 02 20:18:13 systemd[1681]: Stopped GNOME Shell on Wayland.
The default for the OOMPolicy setting is "stop", which makes sense for system services, but certainly not for gnome-shell.