SourceFiles.org - Use the Source, Luke
Home | Register | News | Forums | Guide | MyLinks | Bookmark

Related Sites

Latest News
  General News
  Reviews
  Press Releases
  Software
  Hardware
  Security
  Tutorials
  Off Topic


Back to files

This documents Log2Rot script under src directory

What is it

Log2Rot is a little script useful to convert already exsistent configuration files of logrotate(8) to the GNU Rot[t]Log syntax. It should not modify any original file, and will create a new tree containing converted files.

How it works

Log2Rot make this tree under ETCDIR (see VARIABLES):

ETCDIR

      |---->monthly.d
      |---->weekly.d
      |---->daily.d

Log2Rot read logrotate.conf and make accordingly a new main rc, monthly, weekly and daily files.
It will save each configuration block found in logrotate.conf in a separate file. All included files will be converted too. If it find some unsupported parameter, it will comment the line in converted config file.

VARIABLES

Log2Rot is still in a very development stage, so it needs some little hacking.
There is a number of variables that can be modified by user:

PREFIX
This is the original basedir containing logrotate.conf and logrotate.d

ETCDIR
This is the to-be-created basedir containing new tree of converted files

CONFIG_LOGROTATE
This is the complete filename of logrotate.conf (the best choice whould be probably to leave its value untouched)

BASE_TMP_DIR
This is the basedir that will contain temporary files


Other Sites

Discussion Groups
  Beginners
  Distributions
  Networking / Security
  Software
  PDAs

About | FAQ | Privacy | Awards | Contact
Comments to the webmaster are welcome.
Copyright 2006 Sourcefiles.org All rights reserved.