This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
/var/log/nw.log {
|
||||
postrotate
|
||||
/bin/killall -HUP nwserv
|
||||
endrotate
|
||||
}
|
||||
|
||||
/var/log/nw.routes {
|
||||
postrotate
|
||||
/bin/killall -HUP nwserv
|
||||
endrotate
|
||||
}
|
||||
23
opt/nwserv.logrotate.cmake
Normal file
23
opt/nwserv.logrotate.cmake
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user