summaryrefslogtreecommitdiff
path: root/src/journal
diff options
context:
space:
mode:
authorWaLyong Cho <walyong.cho@samsung.com>2014-08-28 21:33:03 +0900
committerLennart Poettering <lennart@poettering.net>2014-10-22 20:43:40 +0200
commit3bfd4e0c6341b0ef946d2198f089743fa99e0a97 (patch)
treecd7b52b3b2614151250dd3c7e3701ca5890f8dd6 /src/journal
parent07a60cc13c48c5f79616b07aad2808bfe809de22 (diff)
journal: do server_vacuum for sigusr1
runtime journal is migrated to system journal when only "/run/systemd/journal/flushed" exist. It's ok but according to this the system journal directory size(max use) can be over the config. If journal is not rotated during some time the journal directory can be remained as over the config(or default) size. To avoid, do server_vacuum just after the system journal migration from runtime.
Diffstat (limited to 'src/journal')
-rw-r--r--src/journal/journald-server.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/journal/journald-server.c b/src/journal/journald-server.c
index 52111f75a..bf9cfcccc 100644
--- a/src/journal/journald-server.c
+++ b/src/journal/journald-server.c
@@ -1224,6 +1224,7 @@ static int dispatch_sigusr1(sd_event_source *es, const struct signalfd_siginfo *
touch("/run/systemd/journal/flushed");
server_flush_to_var(s);
server_sync(s);
+ server_vacuum(s);
return 0;
}