1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 3.2//EN">
4 <TITLE> [IRCServices] out of buffer?
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">
13 <BODY BGCOLOR=
"#ffffff">
14 <H1>[IRCServices] out of buffer?
</H1>
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
19 <I>Mon Jan
24 20:
14:
19 PST
2005</I>
21 <LI>Previous message:
<A HREF=
"004774.html">[IRCServices] out of buffer?
23 <LI>Next message:
<A HREF=
"004776.html">[IRCServices] out of buffer?
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>
34 <PRE>On Tue, Jan
25,
2005 at
08:
43:
53AM +
0900, Andrew Church wrote:
35 ><i> >Is there anyway to make ircservices save the databases when they recieve
36 </I>><i> >~ like the HUP signal or something so I could save the current info to
37 </I>><i> >XML using a shellscript?
39 </I>><i> >For ex:
40 </I>><i> >killall -HUP ircservices
&& ./ircservices -export
> foo.xml
42 </I>><i> That's an interesting thought; the problem, of course, is that saving
43 </I>><i> the databases isn't an instantaneous activity, so you'd need a sleep of
44 </I>><i> some length in the middle. I'll think about it.
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.
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...
57 Type: application/pgp-signature
60 Url :
<A HREF=
"../attachments/20050124/f3f7176c/attachment.pgp">../attachments/
20050124/f3f7176c/attachment.pgp
</A>
68 <LI>Previous message:
<A HREF=
"004774.html">[IRCServices] out of buffer?
70 <LI>Next message:
<A HREF=
"004776.html">[IRCServices] out of buffer?
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>