1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 3.2//EN">
4 <TITLE> [IRCServices] Turning over logs with crontab?
6 <LINK REL=
"Index" HREF=
"index.html" >
7 <LINK REL=
"made" HREF=
"mailto:ircservices%40ircservices.za.net?Subject=%5BIRCServices%5D%20Turning%20over%20logs%20with%20crontab%3F&In-Reply-To=006801c02ef4%24616d12d0%240100a8c0%40sunnyline.co.za">
8 <META NAME=
"robots" CONTENT=
"index,nofollow">
9 <META http-equiv=
"Content-Type" content=
"text/html; charset=us-ascii">
10 <LINK REL=
"Previous" HREF=
"000801.html">
11 <LINK REL=
"Next" HREF=
"000803.html">
13 <BODY BGCOLOR=
"#ffffff">
14 <H1>[IRCServices] Turning over logs with crontab?
</H1>
16 <A HREF=
"mailto:ircservices%40ircservices.za.net?Subject=%5BIRCServices%5D%20Turning%20over%20logs%20with%20crontab%3F&In-Reply-To=006801c02ef4%24616d12d0%240100a8c0%40sunnyline.co.za"
17 TITLE=
"[IRCServices] Turning over logs with crontab?">&quot
19 <I>Thu Oct
5 11:
08:
20 PDT
2000</I>
21 <LI>Previous message:
<A HREF=
"000801.html">[IRCServices] Turning over logs with crontab?
23 <LI>Next message:
<A HREF=
"000803.html">[IRCServices] Turning over logs with crontab?
25 <LI> <B>Messages sorted by:
</B>
26 <a href=
"date.html#802">[ date ]
</a>
27 <a href=
"thread.html#802">[ thread ]
</a>
28 <a href=
"subject.html#802">[ subject ]
</a>
29 <a href=
"author.html#802">[ author ]
</a>
34 <PRE>You have my vote for that. :) I'm looking at log files that run into the
100's of megs, and it would be nice to shuffle them off to another place, or automate it in some fashion.
37 Senior Network Administrator
38 <A HREF=
"http://www.stratics.com/">http://www.stratics.com/
</A>
39 irc.stratics.com port
6667
41 -----Original Message-----
42 From:
<A HREF=
"http://www.ircservices.za.net/mailman/listinfo/ircservices">owner-ircservices at Snow.shadowfire.org
</A>
43 [
<A HREF=
"mailto:
<A HREF=
"http://www.ircservices.za.net/mailman/listinfo/ircservices">owner-ircservices at Snow.shadowfire.org
</A>]On
">mailto:
<A HREF=
"http://www.ircservices.za.net/mailman/listinfo/ircservices">owner-ircservices at Snow.shadowfire.org
</A>]On
</A
> Behalf Of Chris Knipe
44 Sent: Thursday, October
05,
2000 12:
46 PM
45 To:
<A HREF=
"http://www.ircservices.za.net/mailman/listinfo/ircservices">ircservices at Snow.shadowfire.org
</A>
46 Subject: Re: [IRCServices] Turning over logs with crontab?
53 Can we possibly look into some changes into services whereby log files are
54 rotated automatically, say at a time set in the config file?
56 Perhaps automating the logs to rotate should be a bit more, sufficient?
63 ----- Original Message -----
64 From: Chris Wiest
<<A HREF=
"http://www.ircservices.za.net/mailman/listinfo/ircservices">kwahraw at relic.net
</A>>
65 To:
<<A HREF=
"http://www.ircservices.za.net/mailman/listinfo/ircservices">ircservices at ender.shadowfire.org
</A>>
66 Cc:
<<A HREF=
"http://www.ircservices.za.net/mailman/listinfo/ircservices">ircservices at snow.shadowfire.org
</A>>
67 Sent: Wednesday, October
04,
2000 8:
09 PM
68 Subject: Re: [IRCServices] Turning over logs with crontab?
71 ><i> This was a
"hack
" for me, however I modified services so that if they are
72 </I>><i> sent a kill -HUP, they: rotate the logs, reload their configuration files,
73 </I>><i> as well as send a global notice (GNOTICE) that they've received a SIGHUP
74 </I>><i> signal. I also did a hack to the operserv.c, and extern.h so that a /msg
75 </I>><i> operserv restart will properly restart (tagging that comand as the
76 </I>><i> variable sigrestart)
78 </I>><i> The code is below, some got chopped, but you should get the jist (from
81 </I>><i> if(!sigrestart)
83 </I>><i> save_data =
1;
84 </I>><i> /* signal(SIGHUP, SIG_IGN); */
85 </I>><i> log(
"Received SIGHUP, rehashing.
");
86 </I>><i> send_cmd(NULL,
"GNOTICE :signal ^BSIGHUP^B received, reinitializing
87 </I>><i> services log file$
88 </I>><i> rotate_log(NULL);
89 </I>><i> read_config();
90 </I>><i> numcnt =
0;
94 </I>><i> save_data = -
2;
95 </I>><i> signal(SIGHUP, SIG_IGN);
96 </I>><i> log(
"Received SIGHUP, restarting.
");
97 </I>><i> if (!quitmsg)
102 </I>><i> I then have a standard ircd type crontab running the kill -HUP command on
103 </I>><i> the services pid daily, if you need more help, let me know.
107 </I>><i> On Wed,
4 Oct
2000, Tim AtLee wrote:
109 </I>><i> > Hi there
111 </I>><i> > I was wondering if services had a command-line thingey to rotate logs
113 ><i> > as /msg operserv rotatelog).
115 </I>><i> > Thanks,
121 </I>><i> > ---------------------------------------------------------------
122 </I>><i> > To unsubscribe, send email to
<A HREF=
"http://www.ircservices.za.net/mailman/listinfo/ircservices">majordomo at ender.shadowfire.org
</A>
123 </I>><i> > with
"unsubscribe ircservices
" in the body, without the quotes.
127 </I>><i> ---------------------------------------------------------------
128 </I>><i> To unsubscribe, send email to
<A HREF=
"http://www.ircservices.za.net/mailman/listinfo/ircservices">majordomo at ender.shadowfire.org
</A>
129 </I>><i> with
"unsubscribe ircservices
" in the body, without the quotes.
132 ---------------------------------------------------------------
133 To unsubscribe, send email to
<A HREF=
"http://www.ircservices.za.net/mailman/listinfo/ircservices">majordomo at ender.shadowfire.org
</A>
134 with
"unsubscribe ircservices
" in the body, without the quotes.
137 ---------------------------------------------------------------
138 To unsubscribe, send email to
<A HREF=
"http://www.ircservices.za.net/mailman/listinfo/ircservices">majordomo at ender.shadowfire.org
</A>
139 with
"unsubscribe ircservices
" in the body, without the quotes.
148 <LI>Previous message:
<A HREF=
"000801.html">[IRCServices] Turning over logs with crontab?
150 <LI>Next message:
<A HREF=
"000803.html">[IRCServices] Turning over logs with crontab?
152 <LI> <B>Messages sorted by:
</B>
153 <a href=
"date.html#802">[ date ]
</a>
154 <a href=
"thread.html#802">[ thread ]
</a>
155 <a href=
"subject.html#802">[ subject ]
</a>
156 <a href=
"author.html#802">[ author ]
</a>