mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-19 03:05:51 +00:00
- Added log rotation feature, currently set to rotate for every 12h or if log file size exceeds 2 Gb. If the log directory exceeds 50 Gb, old log files will be deleted. - Added config options for toggling console and file logging. - Changed config options for log file storage, now writing log files to a directory instead of a single file. - Added config options to allow specifying the log rotation size, log rotation interval, and log directory max size. - Added detailed documentation in README.md regarding how to configure log rotation. - Updated CMake install script to correctly set path in production mode Co-authored-by: Brandon Kong <bkong@ripple.com>
17 lines
736 B
CMake
17 lines
736 B
CMake
set(CLIO_INSTALL_DIR "/opt/clio")
|
|
set(CMAKE_INSTALL_PREFIX ${CLIO_INSTALL_DIR})
|
|
|
|
install(TARGETS clio_server DESTINATION bin)
|
|
# install(TARGETS clio_tests DESTINATION bin) # NOTE: Do we want to install the tests?
|
|
|
|
#install(FILES example-config.json DESTINATION etc RENAME config.json)
|
|
file(READ example-config.json config)
|
|
string(REGEX REPLACE "./clio_log" "/var/log/clio/" config "${config}")
|
|
file(WRITE ${CMAKE_BINARY_DIR}/install-config.json "${config}")
|
|
install(FILES ${CMAKE_BINARY_DIR}/install-config.json DESTINATION etc RENAME config.json)
|
|
|
|
configure_file("${CMAKE_SOURCE_DIR}/CMake/install/clio.service.in" "${CMAKE_BINARY_DIR}/clio.service")
|
|
|
|
install(FILES "${CMAKE_BINARY_DIR}/clio.service" DESTINATION /lib/systemd/system)
|
|
|