syslog log rotation

S.P.Zeidler spz at serpens.de
Wed Apr 25 06:28:24 UTC 2001


Dear all,

While you're in scanlogs, also include the following fairly trivial patch?

--------- snip -------------
*** /usr/local/src/inn-2.3.1-ipv6/scripts/scanlogs      Mon Mar 26 18:40:56 2001
--- scanlogs    Wed Apr 25 08:14:53 2001
***************
*** 171,178 ****
                rm -f ${OLD}/${BASE} ${F}.new
                touch ${F}.new
                chmod 0660 ${F}.new
!               ln ${F} ${OLD}/${BASE}
                mv ${F}.new ${F}
            fi
            ;;
        esac
--- 171,179 ----
                rm -f ${OLD}/${BASE} ${F}.new
                touch ${F}.new
                chmod 0660 ${F}.new
!               ln ${F} ${F}.old
                mv ${F}.new ${F}
+               mv ${F}.old ${OLD}/${BASE}
            fi
            ;;
        esac

------------ snap -------------

My logs/OLD is not the same filesystem as my logs, so the old ln breaks. 

I feel a great need to keep my logs, but I feel no need to have that be 
particularily fast diskspace :-]

kind regards,
	spz
-- 
spz at serpens.de (S.P.Zeidler)


More information about the inn-workers mailing list