Forwarded: https://github.com/evilsocket/opensnitch/pull/1019
Last-Update: 2025-04-20
Also protect the firewall daemon from the kernel OOM killer. Partly
based on proposal from
https://github.com/evilsocket/opensnitch/pull/1019/.
Gbp-Pq: Name 1030-systemd-service-earlier.patch
[Unit]
Description=Application firewall OpenSnitch
Documentation=https://github.com/evilsocket/opensnitch/wiki
+DefaultDependencies=no
+Before=network-pre.target shutdown.target
+Wants=network-pre.target
+Conflicts=shutdown.target
[Service]
Type=simple
Restart=always
RestartSec=30
TimeoutStopSec=10
+# Ensure it is not killed by the Linux kernel's Out-Of-Memory (OOM) killer.
+# https://www.freedesktop.org/software/systemd/man/systemd.exec.html#OOMScoreAdjust=
+OOMScoreAdjust=-1000
[Install]
-WantedBy=multi-user.target
+WantedBy=basic.target