From 12d67bbede44bfde2bf5fe8bae767c319014c48b Mon Sep 17 00:00:00 2001 From: b Date: Mon, 19 Feb 2024 20:36:13 +0000 Subject: [PATCH] old logs handling --- bb2html.1.awk | 2 +- mview.1.awk | 2 +- ottmirror.1.cron | 9 ++------- posted.1.awk | 2 +- redirect.1.c | 2 +- settings-debug.txt | 5 +++++ settings-release.txt | 9 +++++++-- 7 files changed, 18 insertions(+), 13 deletions(-) diff --git a/bb2html.1.awk b/bb2html.1.awk index ccf908a..76cf7ef 100644 --- a/bb2html.1.awk +++ b/bb2html.1.awk @@ -1,6 +1,6 @@ # OTT mirror # Copyright (C) 2014, 2024 Balthasar Szczepański -# bb2html.awk is generated from bb2html.1.awk +# bb2html.awk automatically generated from bb2html.1.awk # translate BBcode to HTML and add to post file. # This file is part of OTT mirror. diff --git a/mview.1.awk b/mview.1.awk index 186c800..db9be62 100644 --- a/mview.1.awk +++ b/mview.1.awk @@ -1,6 +1,6 @@ # OTT mirror # Copyright (C) 2014, 2024 Balthasar Szczepański -# mview.awk is automatically generated from mview.1.awk +# mview.awk automatically generated from mview.1.awk # view the contents of posts from the mirror. # This file is part of OTT mirror. diff --git a/ottmirror.1.cron b/ottmirror.1.cron index edc1b70..d8c8f3b 100644 --- a/ottmirror.1.cron +++ b/ottmirror.1.cron @@ -16,12 +16,7 @@ ###cron_blitz_schedule; ###cron_user; ###bin_bot3_path; #mustard reketchup -###cron_mustard_reketchup_schedule; ###cron_user; ###perl; ###bin_bot2m_path; > ###log_bot2m_path; +###cron_mustard_reketchup_schedule; ###cron_user; ###perl; ###bin_bot2m_path; >> ###log_bot2m_path; #log relocation -#TODO: Replace with better mechanism! -# ###cron_log_relocation_schedule; ###cron_user; ###mv; ###log_bot2_path;1 ###log_bot2_path;1.lastweek -# ###cron_log_relocation_schedule; ###cron_user; ###mv; ###log_bot2_path;2 ###log_bot2_path;2.lastweek -# ###cron_log_relocation_schedule; ###cron_user; ###mv; ###log_bot2_path;3 ###log_bot2_path;3.lastweek -# ###cron_log_relocation_schedule; ###cron_user; ###mv; ###log_bot3_path; ###log_bot3_path;.lastweek -###cron_log_relocation_schedule; ###cron_user; ###mv; ###log_bot2m_path; ###log_bot2m_path;.lastweek +###cron_log_relocation_schedule; ###oldlogs; ###log_path; ###log_size_limit; ###logs_total; ###logs_uncompressed; diff --git a/posted.1.awk b/posted.1.awk index 0dd36ce..b9492de 100644 --- a/posted.1.awk +++ b/posted.1.awk @@ -1,6 +1,6 @@ # OTT mirror # Copyright (C) 2014, 2024 Balthasar Szczepański -# posted.awk is automatically generated from posted.1.awk +# posted.awk automatically generated from posted.1.awk # one post recently sent from the mirror # This file is part of OTT mirror. diff --git a/redirect.1.c b/redirect.1.c index d85c067..ad3f8c5 100644 --- a/redirect.1.c +++ b/redirect.1.c @@ -1,6 +1,6 @@ // OTT mirror // Copyright (C) 2014, 2024 Balthasar Szczepański -// redirect.c is automaticaly generated from redirect.1.c +// redirect.c automatically generated from redirect.1.c // redirect service for the "Jump to:" list. // // This file is part of OTT mirror. diff --git a/settings-debug.txt b/settings-debug.txt index 175d767..6031ffd 100644 --- a/settings-debug.txt +++ b/settings-debug.txt @@ -44,6 +44,7 @@ bot3_url : http://1190.bicyclesonthemoon.info/bothasar_p/ default_subject: Re: 1190: "Time" sendpost: /botm/bin/post/sendpost +oldlogs: /botm/bin/oldlogs/oldlogs.pl awk : /usr/bin/mawk cat : /usr/bin/cat @@ -83,3 +84,7 @@ cron_mustard_post_schedule: #26 23 * * * cron_mustard_reketchup_schedule: 32 4 * * * cron_log_relocation_schedule: 0 0 * * 1 + +log_size_limit: 65536 +logs_uncompressed: 1 +logs_total: 5 diff --git a/settings-release.txt b/settings-release.txt index f2f6e5c..48adc7f 100644 --- a/settings-release.txt +++ b/settings-release.txt @@ -35,15 +35,16 @@ smiley_regexp : ((url.\.)|(((href)|(src))=.http:\/\/((for(ums3?|a)\.xkcd\.com smiley_regexp2 : ((\.)|(http:\/\/((for(ums3?|a)\.xkcd\.com)|echochamber\.me)))\/images\/smilies avatar_regexp : ((src)|(href))=.http:\/\/((for(ums3?|a)\.xkcd\.com)|echochamber\.me)\/download\/file.php\?avatar= attachment_regexp: ((src)|(href))=.http:\/\/(www\.)?((for(ums3?|a)\.xkcd\.com)|echochamber\.me)\/download\/file.php\?(mode=view\&)?id= -own_image_regexp : ((1190.bicyclesonthemoon.(dnsd.)?info)|(1190-botm.dnsdynamic.com))\/ott\/image\/ +own_image_regexp : ((1190.bicyclesonthemoon.(dnsd.)?info)|(1190-botm.dnsdynamic.com))\/ottest\/image\/ own_domain : 1190.bicyclesonthemoon.info -own_url : http://1190.bicyclesonthemoon.info/ott +own_url : http://1190.bicyclesonthemoon.info/ottest bot3name : bothasar_p bot3_url : http://1190.bicyclesonthemoon.info/bothasar_p/ default_subject: Re: 1190: "Time" sendpost: /botm/bin/post/sendpost +oldlogs: /botm/bin/oldlogs/oldlogs.pl awk : /usr/bin/mawk cat : /usr/bin/cat @@ -83,3 +84,7 @@ cron_mustard_post_schedule: #26 23 * * * cron_mustard_reketchup_schedule: #32 4 * * * cron_log_relocation_schedule: 0 0 * * 1 + +log_size_limit: 65536 +logs_uncompressed: 1 +logs_total: 5 -- 2.30.2