summaryrefslogtreecommitdiff
path: root/src/journal/journald-gperf.gperf
diff options
context:
space:
mode:
authorOleksii Shevchuk <alxchk@gmail.com>2013-03-25 18:49:03 +0200
committerLennart Poettering <lennart@poettering.net>2013-03-25 17:51:06 +0100
commit26687bf8a907009dedcff79346860ed41511405e (patch)
tree3c540f4decd19e85941547bddd86987d7bf44f29 /src/journal/journald-gperf.gperf
parenta9602630c64791571ca37606a0a5eabfac85820a (diff)
journal: Add sync timer to journal server
Add option to force journal sync with fsync. Default timeout is 5min. Interval configured via SyncIntervalSec option at journal.conf. Synced journal files will be marked as OFFLINE. Manual sync can be performed via sending SIGUSR1.
Diffstat (limited to 'src/journal/journald-gperf.gperf')
-rw-r--r--src/journal/journald-gperf.gperf1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/journal/journald-gperf.gperf b/src/journal/journald-gperf.gperf
index 1baef1411c..57b45f9232 100644
--- a/src/journal/journald-gperf.gperf
+++ b/src/journal/journald-gperf.gperf
@@ -18,6 +18,7 @@ struct ConfigPerfItem;
Journal.Storage, config_parse_storage, 0, offsetof(Server, storage)
Journal.Compress, config_parse_bool, 0, offsetof(Server, compress)
Journal.Seal, config_parse_bool, 0, offsetof(Server, seal)
+Journal.SyncIntervalSec, config_parse_usec, 0, offsetof(Server, sync_interval_usec)
Journal.RateLimitInterval, config_parse_usec, 0, offsetof(Server, rate_limit_interval)
Journal.RateLimitBurst, config_parse_unsigned, 0, offsetof(Server, rate_limit_burst)
Journal.SystemMaxUse, config_parse_bytes_off, 0, offsetof(Server, system_metrics.max_use)