1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 3.2//EN">
4 <TITLE> [IRCServices] Rotate Log function - performance
6 <LINK REL=
"Index" HREF=
"index.html" >
7 <LINK REL=
"made" HREF=
"mailto:ircservices%40ircservices.za.net?Subject=%5BIRCServices%5D%20Rotate%20Log%20function%20-%20performance&In-Reply-To=LPBBJLDCHCNGAKLLJFKNOEDMCEAA.markh%40eurodltd.co.uk">
8 <META NAME=
"robots" CONTENT=
"index,nofollow">
9 <META http-equiv=
"Content-Type" content=
"text/html; charset=us-ascii">
10 <LINK REL=
"Previous" HREF=
"001503.html">
11 <LINK REL=
"Next" HREF=
"001505.html">
13 <BODY BGCOLOR=
"#ffffff">
14 <H1>[IRCServices] Rotate Log function - performance
</H1>
16 <A HREF=
"mailto:ircservices%40ircservices.za.net?Subject=%5BIRCServices%5D%20Rotate%20Log%20function%20-%20performance&In-Reply-To=LPBBJLDCHCNGAKLLJFKNOEDMCEAA.markh%40eurodltd.co.uk"
17 TITLE=
"[IRCServices] Rotate Log function - performance">andy at strugglers.net
19 <I>Tue Feb
27 00:
16:
01 PST
2001</I>
21 <LI>Previous message:
<A HREF=
"001503.html">[IRCServices] Rotate Log function - performance
23 <LI>Next message:
<A HREF=
"001505.html">AW: [IRCServices] Rotate Log function - performance
25 <LI> <B>Messages sorted by:
</B>
26 <a href=
"date.html#1504">[ date ]
</a>
27 <a href=
"thread.html#1504">[ thread ]
</a>
28 <a href=
"subject.html#1504">[ subject ]
</a>
29 <a href=
"author.html#1504">[ author ]
</a>
34 <PRE>On Mon,
26 Feb
2001 21:
57:
30 -
0000,
"Mark Hetherington
"
35 <<A HREF=
"http://www.ircservices.za.net/mailman/listinfo/ircservices">markh at eurodltd.co.uk
</A>> wrote:
37 ><i>I am considering adding a rotate log function to services (and to the ircd
38 </I>><i>but that is beyond the scope of this list) which will automatically rotate
39 </I>><i>the log each day at Midnight but am looking for a low/no performance impact
40 </I>><i>determination that Midnight has occured.
42 Not a complete solution but just a suggestion:
44 Does it really matter to you if it is exactly midnight?
46 Surely you can simply check that it is the
"next day
" and the log has not
47 yet been rotated? This then will allow you to rotate the log as close to
48 midnight as you wish without needing to run something every second.
50 I just think for the purposes of log rotation, a few minutes either way is
51 not going to matter to you.
54 Andy Smith
<<A HREF=
"http://www.ircservices.za.net/mailman/listinfo/ircservices">andy at strugglers.net
</A>>
63 <LI>Previous message:
<A HREF=
"001503.html">[IRCServices] Rotate Log function - performance
65 <LI>Next message:
<A HREF=
"001505.html">AW: [IRCServices] Rotate Log function - performance
67 <LI> <B>Messages sorted by:
</B>
68 <a href=
"date.html#1504">[ date ]
</a>
69 <a href=
"thread.html#1504">[ thread ]
</a>
70 <a href=
"subject.html#1504">[ subject ]
</a>
71 <a href=
"author.html#1504">[ author ]
</a>