if the used systemd version supported ProtectSystem=strict but didn't
support StateDirectory (issue seen at least with systemd 232 in Debian 9)
- New
- - Add configuration option WriteAheadLoggingDatabase to enable SQLite
+ - Add configuration option DatabaseWriteAheadLogging to enable SQLite
Write-Ahead Logging mode which may provide some disk i/o benefits,
see https://www.sqlite.org/wal.html for more details and note that
SQLite 3.22.0 or later is required to support read-only operations
# New configuration settings
- * 2.3: WriteAheadLoggingDatabase, DatabaseSynchronous
+ * 2.3: DatabaseWriteAheadLogging, DatabaseSynchronous
* 2.2: 64bitInterfaceCounters
64bitInterfaceCounters -2
# use SQLite Write-Ahead Logging mode (1 = enabled, 0 = disabled)
-WriteAheadLoggingDatabase 0
+DatabaseWriteAheadLogging 0
# change the setting of the SQLite "synchronous" flag
# (-1 = auto, 0 = off, 1, = normal, 2 = full, 3 = extra)
to ensure data safety at the cost of slower performance. A value of 0 will
result in all handling being left to the filesystem itself. Set to -1 to
select the default value according to database mode controlled by
-.B WriteAheadLoggingDatabase
+.B DatabaseWriteAheadLogging
setting. See SQLite documentation for more details regarding values from 1
to 3. Value range: -1..3
+.TP
+.B DatabaseWriteAheadLogging
+Enable or disable SQLite Write-Ahead Logging mode for the database. See SQLite
+documentation for more details and note that support for read-only operations
+isn't available in older versions. 1 = enabled, 0 = disabled.
+
.TP
.B HourlyDays
Data retention duration for the one hour resolution entries. The configuration
unlimited entries or to 0 to disable the data collection of this
resolution.
-.TP
-.B WriteAheadLoggingDatabase
-Enable or disable SQLite Write-Ahead Logging mode for the database. See SQLite
-documentation for more details and note that support for read-only operations
-isn't available in older versions. 1 = enabled, 0 = disabled.
-
.SH IMAGE OUTPUT RELATED KEYWORDS
.TP
{"LogFile", cfg.logfile, 0, 512, 0},
{"PidFile", cfg.pidfile, 0, 512, 0},
{"64bitInterfaceCounters", 0, &cfg.is64bit, 0, 0},
- {"WriteAheadLoggingDatabase", 0, &cfg.waldb, 0, 0},
+ {"DatabaseWriteAheadLogging", 0, &cfg.waldb, 0, 0},
{"DatabaseSynchronous", 0, &cfg.dbsynchronous, 0, 0},
{"HeaderFormat", cfg.hformat, 0, 64, 0},
{"HourlyRate", 0, &cfg.hourlyrate, 0, 0},
validateint("CreateDirs", &cfg.createdirs, CREATEDIRS, 0, 2);
validateint("UpdateFileOwner", &cfg.updatefileowner, UPDATEFILEOWNER, 0, 2);
validateint("64bitInterfaceCounters", &cfg.is64bit, IS64BIT, -2, 1);
- validatebool("WriteAheadLoggingDatabase", &cfg.waldb, WALDB);
+ validatebool("DatabaseWriteAheadLogging", &cfg.waldb, WALDB);
validateint("DatabaseSynchronous", &cfg.dbsynchronous, DBSYNCHRONOUS, -1, 3);
validatebool("TransparentBg", &cfg.transbg, TRANSBG);
validatebool("HourlyRate", &cfg.hourlyrate, HOURLYRATE);
printf("64bitInterfaceCounters %d\n\n", cfg.is64bit);
printf("# use SQLite Write-Ahead Logging mode (1 = enabled, 0 = disabled)\n");
- printf("WriteAheadLoggingDatabase %d\n\n", cfg.waldb);
+ printf("DatabaseWriteAheadLogging %d\n\n", cfg.waldb);
printf("# change the setting of the SQLite \"synchronous\" flag\n");
printf("# (-1 = auto, 0 = off, 1, = normal, 2 = full, 3 = extra)\n");
#if !HAVE_DECL_SQLITE_CHECKPOINT_RESTART
if (cfg.waldb) {
- snprintf(errorstring, 1024, "WriteAheadLoggingDatabase is enabled but used libsqlite3 does not support it");
+ snprintf(errorstring, 1024, "DatabaseWriteAheadLogging is enabled but used libsqlite3 does not support it");
printe(PT_Warning);
}
#endif