summaryrefslogtreecommitdiff
path: root/src/shutdown
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2019-08-22 10:02:28 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-08-22 10:02:28 +0200
commit2ec71e439f62603de29e68e48705c1f707b847db (patch)
treea51c35279bdfae87b6296fa659ade558dcf6a2fe /src/shutdown
parentd0696f3b7501744d91bcbef83478b9cd4a8160f4 (diff)
downloadsystemd-2ec71e439f62603de29e68e48705c1f707b847db.tar.gz
systemd-2ec71e439f62603de29e68e48705c1f707b847db.tar.bz2
systemd-2ec71e439f62603de29e68e48705c1f707b847db.zip
journald: slightly bump OOM adjust for journald (#13366)
If logging disappears issues are hard to debug, hence let's give journald a slight edge over other services when the OOM killer hits. Here are the special adjustments we now make: systemd-coredump@.service.in OOMScoreAdjust=500 systemd-journald.service.in OOMScoreAdjust=-250 systemd-udevd.service.in OOMScoreAdjust=-1000 (i.e. the coredump processing is made more likely to be killed on OOM, and udevd and journald are less likely to be killed)
Diffstat (limited to 'src/shutdown')
-rw-r--r--src/shutdown/shutdown.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/shutdown/shutdown.c b/src/shutdown/shutdown.c
index a574a07041..0eb17989d0 100644
--- a/src/shutdown/shutdown.c
+++ b/src/shutdown/shutdown.c
@@ -508,7 +508,6 @@ int main(int argc, char *argv[]) {
log_error_errno(errno, "Failed to execute shutdown binary: %m");
} else
log_error_errno(r, "Failed to switch root to \"/run/initramfs\": %m");
-
}
if (need_umount || need_swapoff || need_loop_detach || need_dm_detach)