]> jfr.im git - irc.git/blob - software/!RELEASES/ircservices/achurch.org/services/lists/ircservices/2005/004775.html
RELEASE -> !RELEASE
[irc.git] / software / !RELEASES / ircservices / achurch.org / services / lists / ircservices / 2005 / 004775.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
2 <HTML>
3 <HEAD>
4 <TITLE> [IRCServices] out of buffer?
5 </TITLE>
6 <LINK REL="Index" HREF="index.html" >
7 <LINK REL="made" HREF="mailto:ircservices%40ircservices.esper.net?Subject=%5BIRCServices%5D%20out%20of%20buffer%3F&In-Reply-To=41f5894b.05310%40achurch.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="004774.html">
11 <LINK REL="Next" HREF="004776.html">
12 </HEAD>
13 <BODY BGCOLOR="#ffffff">
14 <H1>[IRCServices] out of buffer?</H1>
15 <B>Sean Kelly</B>
16 <A HREF="mailto:ircservices%40ircservices.esper.net?Subject=%5BIRCServices%5D%20out%20of%20buffer%3F&In-Reply-To=41f5894b.05310%40achurch.org"
17 TITLE="[IRCServices] out of buffer?">smkelly at zombie.org
18 </A><BR>
19 <I>Mon Jan 24 20:14:19 PST 2005</I>
20 <P><UL>
21 <LI>Previous message: <A HREF="004774.html">[IRCServices] out of buffer?
22 </A></li>
23 <LI>Next message: <A HREF="004776.html">[IRCServices] out of buffer?
24 </A></li>
25 <LI> <B>Messages sorted by:</B>
26 <a href="date.html#4775">[ date ]</a>
27 <a href="thread.html#4775">[ thread ]</a>
28 <a href="subject.html#4775">[ subject ]</a>
29 <a href="author.html#4775">[ author ]</a>
30 </LI>
31 </UL>
32 <HR>
33 <!--beginarticle-->
34 <PRE>On Tue, Jan 25, 2005 at 08:43:53AM +0900, Andrew Church wrote:
35 &gt;<i> &gt;Is there anyway to make ircservices save the databases when they recieve
36 </I>&gt;<i> &gt;~ like the HUP signal or something so I could save the current info to
37 </I>&gt;<i> &gt;XML using a shellscript?
38 </I>&gt;<i> &gt;
39 </I>&gt;<i> &gt;For ex:
40 </I>&gt;<i> &gt;killall -HUP ircservices &amp;&amp; ./ircservices -export &gt; foo.xml
41 </I>&gt;<i>
42 </I>&gt;<i> That's an interesting thought; the problem, of course, is that saving
43 </I>&gt;<i> the databases isn't an instantaneous activity, so you'd need a sleep of
44 </I>&gt;<i> some length in the middle. I'll think about it.
45 </I>
46 Can't you hold an exclusive lock (flock, lockf, etc) on the database while
47 writing them and then release it when done writing? That way, the
48 `ircservices -export` could try to obtain a shared lock (since it is
49 read-only) and it will spin while the DBs are still being written.
50
51 --
52 Sean Kelly | PGP KeyID: D2E5E296
53 <A HREF="http://lists.ircservices.za.net/mailman/listinfo/ircservices">smkelly at zombie.org</A> | <A HREF="http://www.zombie.org">http://www.zombie.org</A>
54 -------------- next part --------------
55 A non-text attachment was scrubbed...
56 Name: not available
57 Type: application/pgp-signature
58 Size: 187 bytes
59 Desc: not available
60 Url : <A HREF="../attachments/20050124/f3f7176c/attachment.pgp">../attachments/20050124/f3f7176c/attachment.pgp</A>
61 </PRE>
62
63
64 <!--endarticle-->
65 <HR>
66 <P><UL>
67 <!--threads-->
68 <LI>Previous message: <A HREF="004774.html">[IRCServices] out of buffer?
69 </A></li>
70 <LI>Next message: <A HREF="004776.html">[IRCServices] out of buffer?
71 </A></li>
72 <LI> <B>Messages sorted by:</B>
73 <a href="date.html#4775">[ date ]</a>
74 <a href="thread.html#4775">[ thread ]</a>
75 <a href="subject.html#4775">[ subject ]</a>
76 <a href="author.html#4775">[ author ]</a>
77 </LI>
78 </UL>
79
80 </body></html>