I'm pretty sure I've found a bug here - with the savelog script which is 
called by the cron scripts.  My logs were filled while testing and debugging 
my VPN - so I just ran multicron-d from cron.daily to compress them.   I ran 
it a few times - just to get rid of the compressed files (and heck its 
easier hitting up and enter than cd ing to the right directory and all).  
Thats where I ran into problems I got output similar to this after the 2nd 
or third run

# /etc/cron.daily/multicron-d
mv: ./daemon.log.3.gz: not a directory
mv: ./debug.2.gz: not a directory
mv: ./kern.log.2.gz: not a directory
mv: ./messages.2.gz: not a directory
mv: ./syslog.2.gz: not a directory
mv: ./user.log.2.gz: not a directory
mv: ./ppp.log.2.gz: not a directory
mv: ./pslave.log.2.gz: not a directory

looks like the -f switch does something a little different with this copy of 
mv.  Deleting the -f from savelog as shown below will fix it tho.  The file 
to edit is /usr/bin/savelog

old file

<snip>



# cycle log
                if [ -f "$newname.$cycle$DOT_Z" ]; then
                        mv -f "$newname.$cycle$DOT_Z" \
                            "$newname.$oldcycle$DOT_Z"
                fi
                if [ -f "$newname.$cycle" ]; then
                        # file was not compressed. move it anyway
                        mv -f "$newname.$cycle" "$newname.$oldcycle"
                fi

<snip>

new file
<snip>

# cycle log
                if [ -f "$newname.$cycle$DOT_Z" ]; then
                        mv  "$newname.$cycle$DOT_Z" \
                            "$newname.$oldcycle$DOT_Z"
                fi
                if [ -f "$newname.$cycle" ]; then
                        # file was not compressed. move it anyway
                        mv  "$newname.$cycle" "$newname.$oldcycle"
                fi


<snip>

Thats all,

Simon

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


_______________________________________________
Leaf-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user

Reply via email to