]> jfr.im git - irc.git/blob - software/!RELEASES/ircservices/achurch.org/services/lists/ircservices-coding/2002/000656.html
RELEASE -> !RELEASE
[irc.git] / software / !RELEASES / ircservices / achurch.org / services / lists / ircservices-coding / 2002 / 000656.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
2 <HTML>
3 <HEAD>
4 <TITLE> [IRCServices Coding] Re: IRCServices-Coding digest, Vol 1 #125 - 3 msgs
5 </TITLE>
6 <LINK REL="Index" HREF="index.html" >
7 <LINK REL="made" HREF="mailto:ircservices-coding%40ircservices.za.net?Subject=%5BIRCServices%20Coding%5D%20Re%3A%20IRCServices-Coding%20digest%2C%20Vol%201%20%23125%20-%203%20msgs&In-Reply-To=">
8 <META NAME="robots" CONTENT="index,nofollow">
9 <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
10 <LINK REL="Previous" HREF="000654.html">
11 <LINK REL="Next" HREF="000655.html">
12 </HEAD>
13 <BODY BGCOLOR="#ffffff">
14 <H1>[IRCServices Coding] Re: IRCServices-Coding digest, Vol 1 #125 - 3 msgs</H1>
15 <B>VisionOfHell at aol.com</B>
16 <A HREF="mailto:ircservices-coding%40ircservices.za.net?Subject=%5BIRCServices%20Coding%5D%20Re%3A%20IRCServices-Coding%20digest%2C%20Vol%201%20%23125%20-%203%20msgs&In-Reply-To="
17 TITLE="[IRCServices Coding] Re: IRCServices-Coding digest, Vol 1 #125 - 3 msgs">VisionOfHell at aol.com
18 </A><BR>
19 <I>Fri May 10 08:35:28 PDT 2002</I>
20 <P><UL>
21 <LI>Previous message: <A HREF="000654.html">[IRCServices Coding] PID file becomes stale immediately
22 </A></li>
23 <LI>Next message: <A HREF="000655.html">[IRCServices Coding] PID file becomes stale immediately
24 </A></li>
25 <LI> <B>Messages sorted by:</B>
26 <a href="date.html#656">[ date ]</a>
27 <a href="thread.html#656">[ thread ]</a>
28 <a href="subject.html#656">[ subject ]</a>
29 <a href="author.html#656">[ author ]</a>
30 </LI>
31 </UL>
32 <HR>
33 <!--beginarticle-->
34 <PRE>At a guess id say more specifically:
35
36 1) It has worked with non v5
37 2) The pid is created and then once it becomes stale disappears
38 3) I see nothing wrong with below
39
40 #!/bin/sh
41
42 servicesdir=&quot;/home/chris/servers/services/bin&quot;
43 piddir=&quot;/home/chris/servers/services/lib&quot;
44 name=&quot;ircservices&quot;
45
46
47 ########## you probably don't need to change anything below here ##########
48
49
50 cd $piddir
51 if test -r $name.pid; then
52 # there is a pid file -- is it current?
53 mypid=`cat $name.pid`
54 if `kill -CHLD $mypid &gt;/dev/null 2&gt;&amp;1`; then
55 # it's still going
56 # back out quietly
57 exit 0
58 fi
59 echo &quot;&quot;
60 echo &quot;Stale $name.pid file (erasing it)&quot;
61 rm -f $name.pid
62 fi
63 echo &quot;&quot;
64 echo &quot;Couldn't find the daemon running. Reloading it...&quot;
65 echo &quot;&quot;
66 cd $servicesdir
67 ./$name
68 exit 0
69
70 </PRE>
71
72 <!--endarticle-->
73 <HR>
74 <P><UL>
75 <!--threads-->
76 <LI>Previous message: <A HREF="000654.html">[IRCServices Coding] PID file becomes stale immediately
77 </A></li>
78 <LI>Next message: <A HREF="000655.html">[IRCServices Coding] PID file becomes stale immediately
79 </A></li>
80 <LI> <B>Messages sorted by:</B>
81 <a href="date.html#656">[ date ]</a>
82 <a href="thread.html#656">[ thread ]</a>
83 <a href="subject.html#656">[ subject ]</a>
84 <a href="author.html#656">[ author ]</a>
85 </LI>
86 </UL>
87
88 </body></html>