Creation date .....: 10/09/2000 Modified on .......: gio mar 7 10:27:05 CET 2002 mar mar 26 11:55:19 CET 2002: - added virott[rc|month|week|day] ---------- mar mar 26 13:22:02 CET 2002 Released version 0.6alpha mer mar 27 09:30:18 CET 2002: - Changed file permission of rottlog (now is 0700) - Added error codes - Added showlog function. Added some variables to main rc file ---------- mer mar 27 10:24:13 CET 2002 Released version 0.7alpha gio mar 28 09:37:16 CET 2002: - Added to show_log capability to read uncompressed logs too - Added tmpdir generating code taken from checkinstall v1.4.1 - Removed use of TRAP_MORE_SIGNALS - Added handling of an error during logfile compress - Changed read_and_rotate to read_and_do - Added --summary option - Added --checkrc option ---------- gio mar 28 20:04:26 CET 2002 Released version 0.8alpha mar apr 2 16:42:02 CEST 2002: - Removed a silly bug in syntax function - Added tmpdir generating code "à la checkinstall v1.4.1" to virott* - Make a install.sh script to install rottlog files ---------- mar apr 2 17:00:44 CEST 2002 Released version 0.9alpha mer apr 3 09:24:59 CEST 2002: - Fix silly bug in version display dom apr 7 12:37:58 CEST 2002: - Fix read_and_do function. Now really exits after loaded USCITA variable - Added a first version of size parameter - Fixed a bug in prepare_rotate function. Now numero is well filled in each case ---------- dom apr 7 12:55:42 CEST 2002 Released version 0.10alpha lun apr 8 09:51:51 CEST 2002: - Added capability to use * in filenames. Still needs to work. - Fix a silly bug in virottrc tmp making directory - Fixed another bug in virottrc. Now signal 2 is well "trapped" - Inverted sequence of config file reading: now is monthly, weekly, daily - Added error handling in packer call - More about size param: now uses k,m,b - Added nocreate parameter mar apr 9 17:42:27 CEST 2002: - Added use of META-VARIABLES :-) - Changed lastnum function. - Fixed a BIG bug that was making possible to rotate/archive same file multiple times - Added --force command line option - Added createdir option - Added maxdepth option (can be used in all configuration files) - Updated virott* configuration files to handle new parameters - Updated README file. Synced with new features ---------- mar apr 9 22:15:15 CEST 2002 Released version 0.20alpha - Fixed a bug that makes possible exec pre/post rotate scripts to logs other than interested... sab apr 13 10:38:55 CEST 2002: - Now prerotate/postrotate scripts really use meta-variables - Improved command line handling - added --pager command line parameter - Now --showlog works using meta-vars too - Added many controls on main rc file - Added use of DefConf.inc file to allow configure install procedure - Added use of follow_symlinks in main rc file - Added some exit code lun apr 15 13:39:55 CEST 2002: - Some add in README - Updated --help display page - TO BE TESTED: added check for same logfile two times in same config file mer apr 17 15:49:38 CEST 2002: - added nostoredir parameter - added check for same logfile two times in same config file now works fine - speedup metavar expansion gio apr 18 10:16:52 CEST 2002: - Updated README - Fixed some little bug in install.sh ---------- gio apr 18 17:58:25 CEST 2002 Released version 0.21alpha dom apr 21 09:13:27 CEST 2002: - Fixed a silly bug in intall.sh. I forgot a $ in last line. Thanks to Daniel Fraga :-) lun apr 22 09:23:40 CEST 2002: - Fixed another bug in install.sh. Now MAINPATH is correctly filled. lun apr 22 15:03:00 CEST 2002: - Removed some temporary echo in virottrc - Added check_perms in rottlog - Inverted order of log rotation: now is daily, weekly, monthly mar apr 23 14:51:33 CEST 2002: - Added a mini INSTALL file - Updated sample_monthly - Better handling of NEXT_EXT and FILENAME metavars. This removes a bug in FILENAME expansion too. - Defaults to nocompress compress and packer are not filled in main rc file mer apr 24 17:17:00 CEST 2002: - Added a sanity check to avoid use of time related functions in conjunction with rotate parameter ---------- mer apr 24 19:53:17 CEST 2002 Released version 0.22alpha gio apr 25 18:16:53 CEST 2002: - Added missingok and nomissingok parameters - Changed layout of read_and_do function - Added use of firstaction/lastaction...endaction - Changed read_mainrc function - Updated error codes - Updated documentation ven apr 26 14:53:02 CEST 2002: - Updated documentation - Updated virottrc to handle new parameters - Re-acrivated trap to remove tmp dir before exit sab apr 27 18:24:48 CEST 2002: - Hardened controls on use of wildcard (better: now rottlog have a control on wildcard entered by user) - Added control on wildcards in virott* too lun apr 29 08:51:24 CEST 2002: - Now showlog shows informations about delayed files too - Now shoud works fine NEXT_EXT and FILENAME expansion metavars - Added use of STATPATH to configure location of .delayed_files - Added use of ROTT_STATDIR in install.sh - ... Now install.sh REALLY use ETC_MODE... - Added use of include "anomal-option" in monthly|weekly|daily configuration files - Now rottlog read only one time main rc file :-) - Changed default dir_perm value. 0300 is wrong. Now is 0700. - lastnum function now REALLY better handle NEXT_EXT. - delaycompress when using rotate too now works fine - updated documentation gio mag 2 21:01:17 CEST 2002: - Added "include" support in virott* ---------- gio mag 2 22:21:35 CEST 2002 Released version 0.23alpha ven mag 3 11:48:47 CEST 2002: - Fixed a bug in expand_filename and is_readable (if nomissingok was default to 1 a nonexistent included file was not generating an error) - Fixed a bug in directories creation - fixed setup_vars behavoir - fixed use of MAIL/mail variables - Some little changes around in rottlog's code... - Some little changes in mail_to_admin - Fixed a bug in filename checking in virott* ---------- lun mag 6 17:40:39 CEST 2002 Released version 0.24alpha - Fixed a silly big in NO_SHOWLOG variable use - Added capability to specify relative and absolute path to logfile in --showlog parameter ven mag 10 17:47:07 CEST 2002: - Updated sample_monthly dom mag 12 11:00:30 CEST 2002: - Fixed a bug in tmpdir creation - Added @TEMPDIR meta-variable to use a temporary dir in scripts lun mag 20 15:36:24 CEST 2002: - Added examples in sample_monthly and corrected a big mistake in first sample =8-Q - Added use of @TMPDIR in virott* - Bug fix in virott* to correctly handle actions and scripts lun giu 3 11:11:31 CEST 2002: - EXPERIMENTAL: Added collect/tarcollect capability - Now delayed compress works better: compressed file still have old timestamp - Some bug fix - Updated documentation ---------- lun giu 3 15:34:49 CEST 2002 Released version 0.30alpha mar giu 4 14:53:25 CEST 2002: - Now collate option compress concatenated file - Now tarcollate works well :-) - Corrected typos in error messages (Thanks to Daniel Fraga :-) - Begin to write man pages mer giu 5 16:50:44 CEST 2002: - Added new powerful function cp_mod_own to copy owner and permissions of a file without use of GNU fileutils 4.0 or later (without use of chmod/chown --reference option) - Now tree contained in tar archives made with tarcollate have same permissions of original ones - Updated error codes gio giu 13 21:58:42 CEST 2002: - Use of METAK variable in virottrc file - Added sanity checks for [tar]collate options ---------- gio giu 13 22:02:57 CEST 2002 Released version 0.31alpha gio giu 20 20:01:57 CEST 2002: - Added use of a lockfile to prevent multiple executions of program - More works on man pages mar lug 2 22:26:57 CEST 2002: - Corrected a serious bug in source editing done during install ---------- mar lug 2 22:28:48 CEST 2002 Released version 0.32alpha - Added rottlog(8) and rottlogex(5) man pages - Changed install.sh and DefConf.inc to install man pages too - Added sharedscripts option - Some bugfixes in filename expansion and include files searching ven lug 5 10:25:45 CEST 2002: - BUGFIX in wildcard expansion in rottlog. Now searches only for files and optionally for symlinks. mar lug 9 18:17:47 CEST 2002: - Added sharedscripts check in virott* - Making rottlogmwd.8 man page lun ago 5 08:58:32 CEST 2002: - Add use of dateoffset parameter (thanks to Thomas Bähr) - Add use of forceday parameter in daily configuration file (thanks to Thomas Bähr) - Added use of dateoffset and forceday in virott* - Updated README file. Sorted parameters. mar ago 6 16:34:52 CEST 2002: - Now show_log use variables filled in read_and_do procedure ---------- mer ago 7 16:38:33 CEST 2002 Released version 0.33alpha gio ago 8 09:19:39 CEST 2002: - Updated README file - BUG fixed in Slackware package creation ven ago 9 11:20:17 CEST 2002: - BUG fixed in variables initialization while parsing include directive dom ago 11 23:27:19 CEST 2002: - Changed BASE_TMP_DIR - Some cleanup lun ago 12 11:56:32 CEST 2002: - Changed time check for monthly configuration file: it's no more 30 days but it is based on previous month - Updated documentation - Now create parameter can accept 0 or 3 parameters (like createdir) - Added use of fil_[own,perm,grp] variables in virott* too - Updated sample_rc - Updated README file to add fil_* description mar ago 27 16:03:04 CEST 2002: - Updated install.sh code: change path according to DefConf.inc in man pages during install process - Updated rottlog.8 man page gio ago 29 13:07:28 CEST 2002: - Added use of @1...@n metavariables - Fixed case...esac block in expand_metavar - Fixed a bug using DATE_OFFSET variable. Now it works correctly - Updated documentation (README file) to add use of @1..@n metavariables - BUG FIXED in virott*: now included from daily files are checked correctly - Added use of @1..@n metavariables in virott* ---------- gio ago 29 19:11:57 CEST 2002 Released version 0.34alpha gio ago 29 22:08:36 CEST 2002: - Fixed a typo in install.sh that prevent to install rottlog :-( ---------- gio ago 29 22:09:49 CEST 2002 Released version 0.34.1alpha mar set 3 18:24:16 CEST 2002: - BUG FIXED in rottlog code that prevents to make main tempdir - Added check for awk in install.sh ---------- mar set 3 18:30:09 CEST 2002 Released version 0.35alpha mer set 4 15:26:50 CEST 2002: - BUG FIXED in rottlog code that prevents to correctly use createdir in main rc file (thanks to Frederic Connes) - fixed some typos and removes useless blank spaces (thanks to Frederic Connes) - BUG FIXED in nomail parameter. Now it REALLY don't mail to admin... - BUG FIXED in metavariables expansion. Now @n metavar works with storedir parameter too (thanks to Frederic Connes) - Added default_storefile in main rc config file (thanks to Frederic Connes) - Updated documentation gio set 5 13:42:29 CEST 2002: - Some "cosmethic" change in debecho function use ---------- lun set 9 11:22:31 CEST 2002 Released version 0.36alpha gio set 12 22:27:32 CEST 2002: - Added use of @WEEK and SunMon variable (Thanks to Frederic Connes) - Updated documentation (README) - Improved forceday parameter (Thanks to Frederic Connes) - Added --forceonly option - Updated documentation (rottlog.8 man page) ven set 13 17:07:39 CEST 2002: - Added rottlogmwd.5 man page - Updated web site ven set 20 10:24:40 CEST 2002: - Preparing to use custom config file: moved call to parse_forceday and added timestamp checking for each file using forceday parameter sab set 21 19:17:30 CEST 2002: - Moved all time-related variables filling at beginning of main part - Now time-related variables are referring to only one time - Updated period.sh code. Preparing to merge. lun set 23 22:00:54 CEST 2002: - Added sanity check for end_t variable and some error handling in period.sh - Updated documentation adding period definition (README) mar set 24 12:16:49 CEST 2002: - Added weeks period checking in period.sh - More updates in documentation (README) - Better handling of mmM, DDd and WWw parameters of period in period.sh - Updated rottlogmwd.5 man page. - From this moment man pages are officially source of informations (this means that README is a little less updated than man pages) mer set 25 08:53:34 CEST 2002: - Renamed rottlogmwd.5 in rottlogconf.5 ven set 27 14:55:21 CEST 2002: - Improved period.sh: added some functions and separed timestamp code from parse_period function dom set 29 10:29:21 CEST 2002: - Removed recursive call in period.sh - BUG FIX in period.sh that prevents to well parse token like '!mon-sun' lun set 30 09:37:20 CEST 2002: - Added capability to use multiple intervals in period definition (i.e. '15d sep-dec mon-sun 09:00') gio ott 3 13:08:01 CEST 2002: - Added use of "inlined OR" in period definition - Updated documentation (rottlogconf man page) sab ott 5 12:17:55 CEST 2002: - Added rottlogrc.5 man page sab ott 5 17:18:37 CEST 2002: - Merge fill_timevar function from period.sh in rottlog main code lun ott 7 10:28:22 CEST 2002: - Merge period.sh in main rottlog code - Some bug fixes due to custom config file adding - BUG FIX in --force/--forceonly parameters - Little changes in mail_to_admin function mar ott 8 21:14:09 CEST 2002: - Updated virott* to use 'period' parameter only in custom config file - Changed sample_daily with sample_period in package distribution ---------- mar ott 8 21:18:50 CEST 2002 Released version 0.50alpha sab ott 12 15:19:07 CEST 2002: - little bugfix in --checkrc option dom ott 13 19:03:52 CEST 2002: - Improved --summary output and fixed a little bug in command line parameter lun ott 14 11:33:21 CEST 2002: - Added some check in install.sh script - Fixed missing documentation and man pages installation in install.sh gio ott 17 11:34:11 CEST 2002: - Fixed a bug that prevents to rotate ALL logfiles: period must check only if defined! - Improved mail_to_admin function - Added mailopt parameter ven ott 18 21:24:52 CEST 2002: - Added get_control_info function in rottlog - Better sanity check for rotate parameter and time-related metavariables - Updated documentation ---------- ven ott 18 22:03:08 CEST 2002 Released version 0.51alpha gio ott 24 19:14:59 CEST 2002: - Many changes in mail_to_admin function - Added mailstats parameter in main rc config file - Removed mailopt stat from period-configuration files sab nov 2 18:37:38 CET 2002: - Added sed_error and require_sw functions in install.sh - Synced virottrc to new parameters of main rc config file. >>> Now only virottrc is up to date - Better use of awk in read_mainrc function in rottlog code - Speed up --help and --version output lun nov 4 22:43:45 CET 2002: - Some bug fixes in statistical report mar nov 19 20:19:55 CET 2002 - Added mailopt all Sun Aug 31 12:41:27 CEST 2003 - Added mailopt zip - Updated documentation: added mailopt to rottlogconf man page Sun Sep 28 16:13:10 CEST 2003 - Added -d|--debug option to rottlog (thanks to Mark Haber :-) Tue Sep 30 21:12:15 CEST 2003 - mailstats in main rc config file is NOT FUNCTIONAL :-( Wed Oct 1 22:31:35 CEST 2003 - Added log_rotate global option to allow logs rotation à la logrotate (thanks to Mark Haber) - Added log_rotate option to daily, weekly and monthly config files - Added nostoredir global option - Added sample_rc_logrotate Sun Oct 5 13:10:53 CEST 2003 - Updated documentation to explain differences between two rotating methods - Use follow_symlinks in cp_mod_own - Added create_logrotate parameter to became better logtotare compatible - Changed behavoir of 'size' parameter to do what documentation say about it ;-) ---------- Tue Oct 7 17:17:35 CEST 2003 Released version 0.55alpha Sat Nov 1 11:33:43 CET 2003 - Changed all variables called containing 'path' to 'dir' to use GNU conventions Tue Nov 11 16:24:01 CET 2003 - Due to problems with my old HD I've lost some time to redo this: - Add use of configure and automake - Changed documentation format from man to texinfo (at this time only 2 files) Sat Nov 15 11:51:15 CET 2003 - Finished translation from man to texinfo format. I will try to support all two formats - Added check for BASE_TMP_DIR in configure.ac ---------- Sat Nov 15 12:27:34 CET 2003 Released version 0.60alpha Mon Nov 17 22:25:17 CET 2003 - Added use of period-related global options: now we can define a valid config main rc option in BEGINNING PART of a period-related config file. This means that we can use default values for single period config files. (To be better logrotate compatible). :-) [ Many thanks to Marc Haber to have to point me this gap with logrotate ] IT MUST BE TESTED!! Tue Nov 18 15:01:50 CET 2003 - Added use of nosharedscripts in period config files - Added use of [no]sharedscripts in main rc file - BUG FIX: now checkrc recognize main suboption - BUG FIX: fixed parsing error in rottlog command line parameter --debug - Added tabooext global and local parameter - Some bug fix in new code for period-related global options. - Updated documentation: man pages of rottlogconf.5 and rottlogrc.5 - Updated documentation: related info pages - Some little works in Log2Rot script... Thu Nov 20 09:52:11 CET 2003 - Updated documentation in texinfo and man format - Added Log2Rot to distribution. I hope it will work at least for not-so-hard config... - Updated INSTALL file. Now it's explained new install procedure - Log2Rot: erased FOOL ltrim and rtrim and replaced with trim =8-) - Log2Rot: now handle multiple files correctly Sat Nov 22 18:57:55 CET 2003 - Speed up is_taboo function Sun Nov 23 16:47:53 CET 2003 - Now --checkrc doesn't run scripts/actions during check Mon Nov 24 21:00:57 CET 2003 - BUG FIX: Fixed bug in --force|--forceonly (use of control files) - Added use of a logrotate's SUSE extension: dateext parameter - BIG CHANGE: Removed restriction about rotate and time related meta-variables. TO BE TESTED!! - Added find check in configure.ac - Added use of a logrotate's SUSE extension: maxage parameter Wed Nov 26 14:31:31 CET 2003 - Updated rottlogex info and man page - Correcred a bug in Makefile that prevents to install rottlog at all :-( [ Thanks to Daniel Fraga ] ---------- Wed Nov 26 20:01:43 CET 2003 Released version 0.61alpha Thu Nov 27 09:40:47 CET 2003 - Updated documentation about dateext and maxage parameters - Updated rottlogex texinfo page - Fixed a bug in configure.ac that prevents to install sample rc config files [ Thanks to Daniel Fraga ] - MANY BUG FIXED in Makefile.am and configure.ac [ Thanks to Daniel Fraga ] - Some bugfix in use of temporary stats and maxage files - Some changes in Makefile.am and configure.ac ---------- Thu Nov 27 19:27:30 CET 2003 Released version 0.62alpha Fri Nov 28 17:40:56 CET 2003 - fixed a bug in update_stats function - fixed a bug in lastum function. It was using an incorrect tmp file for maxage - New implementation for remove_maxage due to find problems - Fixed a bug in is_readable function. Now nomissingok goes... OK. - Erased some unuseful code in tgz target in Makefile.am Thu Dec 4 18:34:26 CET 2003 - Some little changes in documentation Tue Dec 23 18:49:30 CET 2003 - Analyzed rottlog-changes.tar.gz. Nobody have touched my code... - Fixed a bug in mailopt_zip and nocompress handling - Added use of maillast parameter for (compatibility with logrotate) - Updated documentation - Synced Log2Rot managed keywords with rottlog updates - Updated README.Log2Rot file - Changed all 'Rot[t]Log' terms with 'GNU Rot[t]Log' in codes and documentation Tue Feb 17 17:10:46 CET 2004: - Added parameter handling in Log2Rot - Added use of some error codes in Log2Rot ---------- Tue Feb 17 17:34:28 CET 2004 Released version 0.63alpha Wed May 12 22:38:08 CEST 2004 - Changed my mail address to falsetto@gnu.org in all needed files - Now read_rc perform sanity checks only when reading main rc file - Updated Log2Rot accordingly - Added use of nodelaycompress option in rottlog and Log2Rot Wed May 19 23:28:45 CEST 2004 - Added new README file Sat May 22 10:17:17 CEST 2004 - Some "cosmethical" change: better use of debecho mssages - Added --debug option to rottlog --help page - Updated rottlog.8 man page to add --debug option - Updated rottlog.texi info page to add --debug option ---------- Fri Jun 11 18:53:06 CEST 2004 Released version 0.70beta1 ---------- Fri Jun 11 18:55:44 CEST 2004 Released version 0.70beta1 sab ott 23 09:13:23 CEST 2004 - Fixed a bug in mail subsystem (Thanks to Antonio Cappellari) sab ott 30 10:43:46 CEST 2004 - Fixed a bug in findlog function: now read correct .last* files - Removed use of DONTEXIT in command line parsing (Thanks to Antonio Cappellari) ---------- sab ott 30 13:34:31 CEST 2004 Released version 0.70beta2 gio feb 24 17:51:20 CET 2005 - Fixed three silly bug in mail_to_admin (extra spaces between = and variabiles) (Thanks to Antonio Cappellari) ven feb 25 13:58:23 CET 2005 - Added {year,month,week,day}_based keyword to better control time-related metavar expansion: TO BE TESTED. - Added start keyword to enhance logrotate compatibility: TO BE TESTED - Updated rottlogconf man page to add *_based keyword, and corrected some english mistake lun feb 28 23:22:44 CET 2005 - Begin a rotate_logrotate rewrite. Some test required before merging. (added use of 'start' keywork) mer mar 9 19:29:16 CET 2005 - Merged new function rotate_logrotate in main rottlog code. To be tested. sab mar 19 11:44:46 CET 2005 - Added check for existing lock directory - Changed date calculation in check_last_rotate (using date_refer) - Added use of date_refer in some 'date' command - Don't use -1 parameter for 'cal' mer mar 23 18:23:24 CET 2005 - Bug fix: in check_last_rotate removed use of 2>&1. - Bug fix: now --summary correctly display informations about newly rotated logs - Bug fix: showlog display only one time same file :-) - Added 'start' description in man and texinfo pages gio mar 24 13:46:53 CET 2005 - Better use of stamp_now global variable - Added use of 'start' keyword to Rot[t]Log rotate method - Added use of start keyword to archiving method too lun apr 4 21:23:20 CEST 2005 - Synced man and texinfo with rottlog code ---------- lun mag 9 22:31:22 CEST 2005 Released version 0.70beta3