Hi Erich,

>> The correct place to change this is the ulogd cron.daily file, lrp.conf
>> is for configuration of the logfiles served by syslogd. I will look for
>> an option to pass the ulogd.conf logfile parameters to the cron.daily
>> script, so this will handled automatically (like done in mhttpd).
>
> Unfortunately it appears that the ulogd.conf file has a non shell
> syntax, so it cannot easily be sourced. For the moment being I have changed
> the cron.daily/ulogd script to handle my own file. I will probably rewrite
> it to also handle multiple files if I see a need.
>
> I still would like to have a _single_ logfile rotation script and a
> _single_ place where to define logfiles to be rotated, ulogd or syslogd
> or whatever logd. I am aware that the logrotate package used by bigger
> distros is probably too fat for LEAF, but I also don't like to have
> separate rotate scripts for every package there is. This IMHO is
> redundant.
>
There _is_ a single logrotating script and there is really no need to
define logfiles to be rotated. The packages that contains daemons that do
logging also contain a cron job that calls the logrotating script. This in
an automatic process, no need to define a logfile. If we would do that it
would also mean that we have to guess which future packages would contain
logging and we would have to rotate logs in that "single place" (and check
for the existence of a daemon to reload) for every possible package an
user may need (including things like samba).

The reason you hit by it is because you used ulogd for something that
wasn't taken into account. The best way to fix it (IMHO), is to
dynamically pass logfilenames to the cron scripts (if possible), like is
done now in the lastest mhttpd(s) packages in CVS or create some sort of
API that will pass logfile names and daemon names used in a package to a
common cron script for reloading and logrotating.

> cheers
>
> Erich
>
Eric


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
leaf-devel mailing list
leaf-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/leaf-devel

Reply via email to