diff options
author | Oleksii Shevchuk <alxchk@gmail.com> | 2013-03-25 17:49:03 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-03-25 17:51:06 +0100 |
commit | 26687bf8a907009dedcff79346860ed41511405e (patch) | |
tree | 3c540f4decd19e85941547bddd86987d7bf44f29 /src/journal/journald-gperf.gperf | |
parent | update TODO (diff) | |
download | systemd-26687bf8a907009dedcff79346860ed41511405e.tar.xz systemd-26687bf8a907009dedcff79346860ed41511405e.zip |
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.gperf | 1 |
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) |