add logrotate
Some checks failed
Source release / source-package (push) Failing after 28s

This commit is contained in:
Mario Fetka
2026-04-21 14:23:54 +02:00
parent e173c40dcb
commit 0be4964c8c
3 changed files with 29 additions and 11 deletions

View File

@@ -11,6 +11,11 @@ configure_file(
"${CMAKE_CURRENT_BINARY_DIR}/nwserv.conf"
IMMEDIATE @ONLY)
configure_file(
"${CMAKE_CURRENT_SOURCE_DIR}/nwserv.logrotate.cmake"
"${CMAKE_CURRENT_BINARY_DIR}/nwserv.logrotate"
IMMEDIATE @ONLY)
#################################
# Compiler Switches
##############
@@ -52,6 +57,7 @@ add_executable( xsockrt xsockrt.c )
##############
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/nwserv.conf DESTINATION ${MARS_NWE_INSTALL_FULL_CONFDIR})
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/nwserv.logrotate DESTINATION ${CMAKE_INSTALL_FULL_SYSCONFDIR}/logrotate.d rename mars_nwe)
install(FILES nwserv.stations DESTINATION ${MARS_NWE_INSTALL_FULL_CONFDIR})
install(FILES nw.ini.cnv.437 DESTINATION ${MARS_NWE_INSTALL_FULL_CONFDIR} RENAME nwserv.cnv.437)
install(FILES nw.ini.cnv.cyr DESTINATION ${MARS_NWE_INSTALL_FULL_CONFDIR} RENAME nwserv.cnv.cyr)

View File

@@ -1,11 +0,0 @@
/var/log/nw.log {
postrotate
/bin/killall -HUP nwserv
endrotate
}
/var/log/nw.routes {
postrotate
/bin/killall -HUP nwserv
endrotate
}

View File

@@ -0,0 +1,23 @@
@MARS_NWE_LOG_DIR@/nw.log {
postrotate
/bin/killall -HUP nwserv
endrotate
}
@MARS_NWE_LOG_DIR@/nw.routes {
postrotate
/bin/killall -HUP nwserv
endrotate
}
@MARS_NWE_LOG_DIR@/nwwebui.log {
postrotate
/bin/killall -HUP nwwebui
endrotate
}
@MARS_NWE_LOG_DIR@/smart.log {
postrotate
/bin/killall -HUP nwwebui
endrotate
}