]> jfr.im git - irc.git/blob - software/RELEASES/ircservices/achurch.org/services/lists/ircservices/2000/000802.html
rename -> *.git
[irc.git] / software / RELEASES / ircservices / achurch.org / services / lists / ircservices / 2000 / 000802.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
2 <HTML>
3 <HEAD>
4 <TITLE> [IRCServices] Turning over logs with crontab?
5 </TITLE>
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">
12 </HEAD>
13 <BODY BGCOLOR="#ffffff">
14 <H1>[IRCServices] Turning over logs with crontab?</H1>
15 <B>&amp;quot</B>
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?">&amp;quot
18 </A><BR>
19 <I>Thu Oct 5 11:08:20 PDT 2000</I>
20 <P><UL>
21 <LI>Previous message: <A HREF="000801.html">[IRCServices] Turning over logs with crontab?
22 </A></li>
23 <LI>Next message: <A HREF="000803.html">[IRCServices] Turning over logs with crontab?
24 </A></li>
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>
30 </LI>
31 </UL>
32 <HR>
33 <!--beginarticle-->
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.
35
36 - Randy Snow -
37 Senior Network Administrator
38 <A HREF="http://www.stratics.com/">http://www.stratics.com/</A>
39 irc.stratics.com port 6667
40
41 -----Original Message-----
42 From: <A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices">owner-ircservices at Snow.shadowfire.org</A>
43 [&lt;A HREF=&quot;mailto:<A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices">owner-ircservices at Snow.shadowfire.org</A>]On&quot;&gt;mailto:<A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices">owner-ircservices at Snow.shadowfire.org</A>]On&lt;/A&gt; 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?
47
48
49 Hi,
50
51 Andrew...
52
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?
55
56 Perhaps automating the logs to rotate should be a bit more, sufficient?
57
58 ---
59 Regards,
60 Chris Knipe
61 Cell: (083) 430-8151
62
63 ----- Original Message -----
64 From: Chris Wiest &lt;<A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices">kwahraw at relic.net</A>&gt;
65 To: &lt;<A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices">ircservices at ender.shadowfire.org</A>&gt;
66 Cc: &lt;<A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices">ircservices at snow.shadowfire.org</A>&gt;
67 Sent: Wednesday, October 04, 2000 8:09 PM
68 Subject: Re: [IRCServices] Turning over logs with crontab?
69
70
71 &gt;<i> This was a &quot;hack&quot; for me, however I modified services so that if they are
72 </I>&gt;<i> sent a kill -HUP, they: rotate the logs, reload their configuration files,
73 </I>&gt;<i> as well as send a global notice (GNOTICE) that they've received a SIGHUP
74 </I>&gt;<i> signal. I also did a hack to the operserv.c, and extern.h so that a /msg
75 </I>&gt;<i> operserv restart will properly restart (tagging that comand as the
76 </I>&gt;<i> variable sigrestart)
77 </I>&gt;<i>
78 </I>&gt;<i> The code is below, some got chopped, but you should get the jist (from
79 </I>&gt;<i> main.c)
80 </I>&gt;<i>
81 </I>&gt;<i> if(!sigrestart)
82 </I>&gt;<i> {
83 </I>&gt;<i> save_data = 1;
84 </I>&gt;<i> /* signal(SIGHUP, SIG_IGN); */
85 </I>&gt;<i> log(&quot;Received SIGHUP, rehashing.&quot;);
86 </I>&gt;<i> send_cmd(NULL, &quot;GNOTICE :signal ^BSIGHUP^B received, reinitializing
87 </I>&gt;<i> services log file$
88 </I>&gt;<i> rotate_log(NULL);
89 </I>&gt;<i> read_config();
90 </I>&gt;<i> numcnt = 0;
91 </I>&gt;<i> return;
92 </I>&gt;<i> }
93 </I>&gt;<i> else {
94 </I>&gt;<i> save_data = -2;
95 </I>&gt;<i> signal(SIGHUP, SIG_IGN);
96 </I>&gt;<i> log(&quot;Received SIGHUP, restarting.&quot;);
97 </I>&gt;<i> if (!quitmsg)
98 </I>&gt;<i>
99 </I>&gt;<i>
100 </I>&gt;<i> etc..
101 </I>&gt;<i>
102 </I>&gt;<i> I then have a standard ircd type crontab running the kill -HUP command on
103 </I>&gt;<i> the services pid daily, if you need more help, let me know.
104 </I>&gt;<i>
105 </I>&gt;<i> --Chris
106 </I>&gt;<i>
107 </I>&gt;<i> On Wed, 4 Oct 2000, Tim AtLee wrote:
108 </I>&gt;<i>
109 </I>&gt;<i> &gt; Hi there
110 </I>&gt;<i> &gt;
111 </I>&gt;<i> &gt; I was wondering if services had a command-line thingey to rotate logs
112 </I>(same
113 &gt;<i> &gt; as /msg operserv rotatelog).
114 </I>&gt;<i> &gt;
115 </I>&gt;<i> &gt; Thanks,
116 </I>&gt;<i> &gt;
117 </I>&gt;<i> &gt; Tim
118 </I>&gt;<i> &gt;
119 </I>&gt;<i> &gt;
120 </I>&gt;<i> &gt;
121 </I>&gt;<i> &gt; ---------------------------------------------------------------
122 </I>&gt;<i> &gt; To unsubscribe, send email to <A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices">majordomo at ender.shadowfire.org</A>
123 </I>&gt;<i> &gt; with &quot;unsubscribe ircservices&quot; in the body, without the quotes.
124 </I>&gt;<i> &gt;
125 </I>&gt;<i>
126 </I>&gt;<i>
127 </I>&gt;<i> ---------------------------------------------------------------
128 </I>&gt;<i> To unsubscribe, send email to <A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices">majordomo at ender.shadowfire.org</A>
129 </I>&gt;<i> with &quot;unsubscribe ircservices&quot; in the body, without the quotes.
130 </I>
131
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 &quot;unsubscribe ircservices&quot; in the body, without the quotes.
135
136
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 &quot;unsubscribe ircservices&quot; in the body, without the quotes.
140
141
142 </PRE>
143
144 <!--endarticle-->
145 <HR>
146 <P><UL>
147 <!--threads-->
148 <LI>Previous message: <A HREF="000801.html">[IRCServices] Turning over logs with crontab?
149 </A></li>
150 <LI>Next message: <A HREF="000803.html">[IRCServices] Turning over logs with crontab?
151 </A></li>
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>
157 </LI>
158 </UL>
159
160 </body></html>