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=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">
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=20010302211124.A14368%40tribble.dyndns.org"
17 TITLE=
"[IRCServices] Rotate Log function - performance">ianj at esper.net
19 <I>Sat Mar
3 05:
33:
00 PST
2001</I>
21 <LI>Previous message:
<A HREF=
"001545.html">[IRCServices] Rotate Log function - performance
23 <LI>Next message:
<A HREF=
"001548.html">[IRCServices] Rotate Log function - performance
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>
34 <PRE>On Fri,
2 Mar
2001, Orion wrote:
36 ><i> or just add a stanza to your logrotate.conf :)
38 </I>><i> /usr/local/lib/services/services.log {
39 </I>><i> daily # or 'weekly' if you prefer :)
40 </I>><i> rotate
14 # save
14 backups of logs
41 </I>><i> errors root # mail errors to root
42 </I>><i> compress # compress old logs
43 </I>><i> create
0600 user group # create an empty logfile with these permissions
44 </I>><i> # after rotating the old one out of the way
45 </I>><i> postrotate # execute these commands after rotating the logfiles
46 </I>><i> kill -SIGUSR2 `cat /usr/local/lib/services/services.pid`
50 </I>><i> Disclaimer: I haven't actually tried that. just whipped it up on the fly... still
51 </I>><i> using old services myself ;)
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
"mv
56 services.log (whatever)
"), it'll create a new one for you.
58 That's just an extra step you don't need to do.
60 --Ian R. Justman, Co-Founder and Postmaster, The EsperNet IRC Network.
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
"IJ
" on IRC
67 PGP key available upon request, or finger
<A HREF=
"http://www.ircservices.za.net/mailman/listinfo/ircservices">ianj at esper.net.
</A>
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.
72 Type Bits/KeyID Date User ID
73 pub
1024/BAB34B69
1997/
11/
15 EsperNet Postmaster
<<A HREF=
"http://www.ircservices.za.net/mailman/listinfo/ircservices">postmaster at esper.net
</A>>
74 Key fingerprint =
05 BD
7C B5
8E
0B FD EF EE
47 49 C4
96 11 59 75
84 <LI>Previous message:
<A HREF=
"001545.html">[IRCServices] Rotate Log function - performance
86 <LI>Next message:
<A HREF=
"001548.html">[IRCServices] Rotate Log function - performance
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>