]> jfr.im git - irc.git/blob - software/!RELEASES/ircservices/achurch.org/services/lists/ircservices/2001/001547.html
RELEASE -> !RELEASE
[irc.git] / software / !RELEASES / ircservices / achurch.org / services / lists / ircservices / 2001 / 001547.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
2 <HTML>
3 <HEAD>
4 <TITLE> [IRCServices] Rotate Log function - performance
5 </TITLE>
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=20010302211124.A14368%40tribble.dyndns.org">
8 <META NAME="robots" CONTENT="index,nofollow">
9 <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
10 <LINK REL="Previous" HREF="001545.html">
11 <LINK REL="Next" HREF="001548.html">
12 </HEAD>
13 <BODY BGCOLOR="#ffffff">
14 <H1>[IRCServices] Rotate Log function - performance</H1>
15 <B>Ian R. Justman</B>
16 <A HREF="mailto:ircservices%40ircservices.za.net?Subject=%5BIRCServices%5D%20Rotate%20Log%20function%20-%20performance&In-Reply-To=20010302211124.A14368%40tribble.dyndns.org"
17 TITLE="[IRCServices] Rotate Log function - performance">ianj at esper.net
18 </A><BR>
19 <I>Sat Mar 3 05:33:00 PST 2001</I>
20 <P><UL>
21 <LI>Previous message: <A HREF="001545.html">[IRCServices] Rotate Log function - performance
22 </A></li>
23 <LI>Next message: <A HREF="001548.html">[IRCServices] Rotate Log function - performance
24 </A></li>
25 <LI> <B>Messages sorted by:</B>
26 <a href="date.html#1547">[ date ]</a>
27 <a href="thread.html#1547">[ thread ]</a>
28 <a href="subject.html#1547">[ subject ]</a>
29 <a href="author.html#1547">[ author ]</a>
30 </LI>
31 </UL>
32 <HR>
33 <!--beginarticle-->
34 <PRE>On Fri, 2 Mar 2001, Orion wrote:
35
36 &gt;<i> or just add a stanza to your logrotate.conf :)
37 </I>&gt;<i>
38 </I>&gt;<i> /usr/local/lib/services/services.log {
39 </I>&gt;<i> daily # or 'weekly' if you prefer :)
40 </I>&gt;<i> rotate 14 # save 14 backups of logs
41 </I>&gt;<i> errors root # mail errors to root
42 </I>&gt;<i> compress # compress old logs
43 </I>&gt;<i> create 0600 user group # create an empty logfile with these permissions
44 </I>&gt;<i> # after rotating the old one out of the way
45 </I>&gt;<i> postrotate # execute these commands after rotating the logfiles
46 </I>&gt;<i> kill -SIGUSR2 `cat /usr/local/lib/services/services.pid`
47 </I>&gt;<i> endscript
48 </I>&gt;<i> }
49 </I>&gt;<i>
50 </I>&gt;<i> Disclaimer: I haven't actually tried that. just whipped it up on the fly... still
51 </I>&gt;<i> using old services myself ;)
52 </I>
53 There's no need to create a new file. All you need do is rename the
54 current logfile, then SIGUSR2 Services. If the services.log file is not
55 already there (which we will assume is fact after renaming it using &quot;mv
56 services.log (whatever)&quot;), it'll create a new one for you.
57
58 That's just an extra step you don't need to do.
59
60 --Ian R. Justman, Co-Founder and Postmaster, The EsperNet IRC Network.
61
62 -----
63 Ian R. Justman (NIC handle IJ12) <A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices">ianj at esper.net</A> (Official EsperNet business)
64 Co-Founder and Postmaster, The EsperNet IRC Network
65 Server Administrator, chocobo.esper.net &quot;IJ&quot; on IRC
66
67 PGP key available upon request, or finger <A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices">ianj at esper.net.</A>
68
69 If this message was signed with the Postmaster's key, please finger
70 <A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices">postmaster at esper.net</A> for the Postmaster public key.
71
72 Type Bits/KeyID Date User ID
73 pub 1024/BAB34B69 1997/11/15 EsperNet Postmaster &lt;<A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices">postmaster at esper.net</A>&gt;
74 Key fingerprint = 05 BD 7C B5 8E 0B FD EF EE 47 49 C4 96 11 59 75
75
76
77
78 </PRE>
79
80 <!--endarticle-->
81 <HR>
82 <P><UL>
83 <!--threads-->
84 <LI>Previous message: <A HREF="001545.html">[IRCServices] Rotate Log function - performance
85 </A></li>
86 <LI>Next message: <A HREF="001548.html">[IRCServices] Rotate Log function - performance
87 </A></li>
88 <LI> <B>Messages sorted by:</B>
89 <a href="date.html#1547">[ date ]</a>
90 <a href="thread.html#1547">[ thread ]</a>
91 <a href="subject.html#1547">[ subject ]</a>
92 <a href="author.html#1547">[ author ]</a>
93 </LI>
94 </UL>
95
96 </body></html>